diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-07 23:26:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-07 23:26:22 +0000 |
| commit | 280529221e9349aa07c6c498df6b80b3a8951198 (patch) | |
| tree | f80ab701abbe3519b2613d735569e3dd23f93dee /openbox/client.h | |
| parent | 31d7680274cdf2fa3c45b8c8d56db2b5d8fbc111 (diff) | |
add a notifier for clients changing desktops. use it to update the send-to menu if it changes. it does this by closing/opening the menu.. thats about the best we can do tho with this menu code without huge changes
Diffstat (limited to 'openbox/client.h')
| -rw-r--r-- | openbox/client.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/openbox/client.h b/openbox/client.h index b046e665..d902f72a 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -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(); |
