]> Dogcows Code - chaz/openbox/blobdiff - openbox/propwin.c
remove trailing whitespace
[chaz/openbox] / openbox / propwin.c
index 0bf74b2af1bdc90254be10076c6e2f5713fdc15f..774591d5c620fb88530719d056464dd9b56737ca 100644 (file)
@@ -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;
 
This page took 0.020559 seconds and 4 git commands to generate.