X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdispatch.h;h=852d0bfca2c6536c2197be1b45f3c4efe9f0b409;hb=276b2be581c6cb138b439537761ff2ca42201805;hp=412e135e6a1df159601717de5fde82179881b01d;hpb=3b14b587ef8131cbeb2afb2c11240f50c5f5d02b;p=chaz%2Fopenbox diff --git a/openbox/dispatch.h b/openbox/dispatch.h index 412e135e..852d0bfc 100644 --- a/openbox/dispatch.h +++ b/openbox/dispatch.h @@ -28,14 +28,15 @@ typedef enum { Event_Client_Urgent = 1 << 14, /* entered/left urgent state */ Event_Client_Desktop = 1 << 15, /* moved to a new desktop */ Event_Client_Moving = 1 << 16, /* being interactively moved */ + Event_Client_Resizing = 1 << 17, /* being interactively resized */ - Event_Ob_Desktop = 1 << 17, /* changed desktops */ - Event_Ob_NumDesktops = 1 << 18, /* changed the number of desktops */ - Event_Ob_ShowDesktop = 1 << 19, /* entered/left show-the-desktop mode */ + Event_Ob_Desktop = 1 << 18, /* changed desktops */ + Event_Ob_NumDesktops = 1 << 19, /* changed the number of desktops */ + Event_Ob_ShowDesktop = 1 << 20, /* entered/left show-the-desktop mode */ - Event_Signal = 1 << 20, /* a signal from the OS */ + Event_Signal = 1 << 21, /* a signal from the OS */ - EVENT_RANGE = 1 << 21 + EVENT_RANGE = 1 << 22 } EventType; typedef struct { @@ -45,12 +46,16 @@ typedef struct { typedef struct { Client *client; - int num[2]; + int num[3]; /* Event_Client_Desktop: num[0] = new number, num[1] = old number Event_Client_Urgent: num[0] = urgent state Event_Client_Moving: num[0] = dest x coord, num[1] = dest y coord -- change these in the handler to adjust where the window will be placed + Event_Client_Resizing: num[0] = dest width, num[1] = dest height -- + change these in the handler to adjust where the + window will be placed + num[2] = the anchored corner */ } EventData_Client; @@ -91,5 +96,8 @@ void dispatch_signal(int signal); /* *x and *y should be set with the destination of the window, they may be changed by the event handlers */ void dispatch_move(Client *c, int *x, int *y); +/* *w and *h should be set with the destination of the window, they may be + changed by the event handlers */ +void dispatch_resize(Client *c, int *w, int *h, ObCorner corner); #endif