]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.h
add a notifier for clients changing desktops. use it to update the send-to menu if...
[chaz/openbox] / openbox / client.h
index b046e665d9314d553a30b23e75b336092695c901..d902f72a5d1ee8bc34f8097bac4fcf5fd8545035 100644 (file)
@@ -300,10 +300,17 @@ extern GList *client_list;
 void client_startup(gboolean reconfig);
 void client_shutdown(gboolean reconfig);
 
-typedef void (*ObClientDestructor)(ObClient *client, gpointer data);
+typedef void (*ObClientCallback)(ObClient *client, gpointer data);
 
-void client_add_destructor(ObClientDestructor func, gpointer data);
-void client_remove_destructor(ObClientDestructor func);
+/* Callback functions */
+
+/*! Get notified when the client is unmanaged */
+void client_add_destructor(ObClientCallback func, gpointer data);
+void client_remove_destructor(ObClientCallback func);
+
+/*! Get notified when the client changes desktop */
+void client_add_desktop_notify(ObClientCallback func, gpointer data);
+void client_remove_desktop_notify(ObClientCallback func);
 
 /*! Manages all existing windows */
 void client_manage_all();
This page took 0.02193 seconds and 4 git commands to generate.