X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fpropwin.c;h=774591d5c620fb88530719d056464dd9b56737ca;hb=bfb0c916718cd6f68ef100841a625b06602f616b;hp=0bf74b2af1bdc90254be10076c6e2f5713fdc15f;hpb=851555348ec39a01a0e150d2e12b71212b8d338b;p=chaz%2Fopenbox diff --git a/openbox/propwin.c b/openbox/propwin.c index 0bf74b2a..774591d5 100644 --- a/openbox/propwin.c +++ b/openbox/propwin.c @@ -1,5 +1,5 @@ /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- - + propwin.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson Copyright (c) 2003-2007 Dana Jansens @@ -19,6 +19,8 @@ #include "propwin.h" #include "openbox.h" +#include "client.h" +#include "debug.h" typedef struct _ObPropWin ObPropWin; typedef struct _ObPropWinData ObPropWinData; @@ -57,7 +59,7 @@ void propwin_shutdown(gboolean reconfig) g_assert(g_hash_table_size(propwin_map) == 0); } -void propwin_add(Window win, ObPropWinType type, struct _ObClient *client) +void propwin_add(Window win, ObPropWinType type, ObClient *client) { ObPropWin *p; @@ -76,11 +78,15 @@ void propwin_add(Window win, ObPropWinType type, struct _ObClient *client) } else g_assert(g_slist_find(p->data[type].clients, client) == NULL); + if (p->data[type].clients != NULL) + ob_debug("Client %s is using a property window 0x%x that is already " + "in use\n", client->title, win); + /* add it to the clients list */ p->data[type].clients = g_slist_prepend(p->data[type].clients, client); } -void propwin_remove(Window win, ObPropWinType type, struct _ObClient *client) +void propwin_remove(Window win, ObPropWinType type, ObClient *client) { ObPropWin *p;