#include "propwin.h"
#include "openbox.h"
+#include "client.h"
+#include "debug.h"
typedef struct _ObPropWin ObPropWin;
typedef struct _ObPropWinData ObPropWinData;
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;
} 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;