X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpropwin.c;h=c20cc3534c0bb041eea1887a9e097ccf2d687702;hb=9c32f34b3766de01c51bc5d00c17d68804ab2603;hp=0bf74b2af1bdc90254be10076c6e2f5713fdc15f;hpb=851555348ec39a01a0e150d2e12b71212b8d338b;p=chaz%2Fopenbox diff --git a/openbox/propwin.c b/openbox/propwin.c index 0bf74b2a..c20cc353 100644 --- a/openbox/propwin.c +++ b/openbox/propwin.c @@ -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;