X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fdispatch.h;h=93b3e459c9f96486c864299314dfe57694f28cc1;hb=122d55fbadea0409fbc902a1740e1c8ff3aecd88;hp=d3ac0d4e7b41676296e05f586492d5233ae3844a;hpb=ca40e8b9eca2bba3d4aadd650722bc80542b4819;p=chaz%2Fopenbox diff --git a/openbox/dispatch.h b/openbox/dispatch.h index d3ac0d4e..93b3e459 100644 --- a/openbox/dispatch.h +++ b/openbox/dispatch.h @@ -1,9 +1,12 @@ #ifndef __dispatch_h #define __dispatch_h -#include "client.h" +#include "misc.h" + #include +struct _ObClient; + void dispatch_startup(); void dispatch_shutdown(); @@ -41,11 +44,11 @@ typedef enum { typedef struct { XEvent *e; - Client *client; + struct _ObClient *client; } EventData_X; typedef struct { - Client *client; + struct _ObClient *client; int num[3]; /* Event_Client_Desktop: num[0] = new number, num[1] = old number Event_Client_Urgent: num[0] = urgent state @@ -73,7 +76,7 @@ typedef struct { typedef struct { EventData_X x; /* for Event_X_* event types */ - EventData_Client c; /* for Event_Client_* event types */ + EventData_Client c; /* for Event_ObClient_* event types */ EventData_Ob o; /* for Event_Ob_* event types */ EventData_Signal s; /* for Event_Signal */ } EventData; @@ -89,15 +92,15 @@ typedef unsigned int EventMask; void dispatch_register(EventMask mask, EventHandler h, void *data); -void dispatch_x(XEvent *e, Client *c); -void dispatch_client(EventType e, Client *c, int num0, int num1); +void dispatch_x(XEvent *e, struct _ObClient *c); +void dispatch_client(EventType e, struct _ObClient *c, int num0, int num1); void dispatch_ob(EventType e, int num0, int num1); 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); +void dispatch_move(struct _ObClient *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, Corner corner); +void dispatch_resize(struct _ObClient *c, int *w, int *h, ObCorner corner); #endif