X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.h;h=758851e1432dc143073b8f76454f6319151c9047;hb=d298cfb786d84ad686a51ad72133a232af39bf85;hp=080225cfaf3a8adcfbe85ad02fb6bf9fb6ef2c38;hpb=888c3d1f6ae80c3e2d8ab37ebead8a96a8d0a565;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index 080225cf..758851e1 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -12,6 +12,7 @@ struct _ObFrame; struct _ObGroup; +struct _ObSessionState; typedef struct _ObClient ObClient; typedef struct _ObClientIcon ObClientIcon; @@ -67,6 +68,10 @@ struct _ObClient /*! The id of the group the window belongs to */ struct _ObGroup *group; + + /*! Saved session data to apply to this client */ + struct _ObSessionState *session; + /*! Whether or not the client is a transient window. This is guaranteed to be TRUE if transient_for != NULL, but not guaranteed to be FALSE if transient_for == NULL. */ @@ -238,6 +243,11 @@ extern GList *client_list; void client_startup(); void client_shutdown(); +typedef void (*ObClientDestructorFunc)(ObClient *c); + +void client_add_destructor(ObClientDestructorFunc func); +void client_remove_destructor(ObClientDestructorFunc func); + /*! Manages all existing windows */ void client_manage_all(); /*! Manages a given window */