]> Dogcows Code - chaz/openbox/blobdiff - openbox/propwin.c
super amazing enter event skipping.
[chaz/openbox] / openbox / propwin.c
index 0bf74b2af1bdc90254be10076c6e2f5713fdc15f..c20cc3534c0bb041eea1887a9e097ccf2d687702 100644 (file)
@@ -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;
 
This page took 0.021295 seconds and 4 git commands to generate.