X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient.h;h=b28acab2dbe77aca7999128c095142b840c7232b;hb=06fb4c7382a9c2a25e74adefbbc267417af5aadd;hp=eec1b7546a8db7b76dadaa44a2330d6959a06035;hpb=0964b804a135243968de22695b953f19f9e8b9d1;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index eec1b754..b28acab2 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -243,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 */ @@ -268,6 +273,16 @@ gboolean client_normal(ObClient *self); /* Returns if the window is focused */ gboolean client_focused(ObClient *self); +#define client_move(self, x, y) \ + client_configure(self, OB_CORNER_TOPLEFT, x, y, \ + self->area.width, self->area.height, \ + TRUE, TRUE) +#define client_resize(self, w, h) \ + client_configure(self, OB_CORNER_TOPLEFT, self->area.x, self->area.y, \ + w, h, TRUE, TRUE) +#define client_move_resize(self, x, y, w, h) \ + client_configure(self, OB_CORNER_TOPLEFT, x, y, w, h, TRUE, TRUE) + #define client_configure(self, anchor, x, y, w, h, user, final) \ client_configure_full(self, anchor, x, y, w, h, user, final, FALSE)