X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient.h;h=aeb2160e47aa4716548287cc8d04ba6fa05b057c;hb=469b0c1ca9c78e3dd0c030dea7dcb9038f557fe6;hp=ed664c32efb9541060fce8f447e9e5cb4fd12aaa;hpb=dfd524926e5d8f0b9cdb120ce1d943a7f8b1af3a;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index ed664c32..aeb2160e 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -272,8 +272,10 @@ extern GList *client_list; void client_startup(gboolean reconfig); void client_shutdown(gboolean reconfig); -void client_add_destructor(GDestroyNotify func); -void client_remove_destructor(GDestroyNotify func); +typedef void (*ObClientDestructor)(ObClient *client, gpointer data); + +void client_add_destructor(ObClientDestructor func, gpointer data); +void client_remove_destructor(ObClientDestructor func); /*! Manages all existing windows */ void client_manage_all(); @@ -503,7 +505,7 @@ void client_setup_decor_and_functions(ObClient *self); /*! Retrieves the window's type and sets ObClient->type */ void client_get_type(ObClient *self); -ObClientIcon *client_icon(ObClient *self, int w, int h); +const ObClientIcon *client_icon(ObClient *self, int w, int h); /*! Searches a client's direct parents for a focused window. The function does not check for the passed client, only for *ONE LEVEL* of its parents. @@ -561,4 +563,6 @@ void client_update_sm_client_id(ObClient *self); ObClient* client_under_pointer(); +gboolean client_has_group_siblings(ObClient *self); + #endif