diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.h | 7 |
1 files changed, 2 insertions, 5 deletions
| @@ -36,8 +36,6 @@ | |||
| 36 | 36 | ||
| 37 | /* mask shorthands, used in event.c and client.c */ | 37 | /* mask shorthands, used in event.c and client.c */ |
| 38 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) | 38 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) |
| 39 | /* other stuff used in different places */ | ||
| 40 | #define PROTODELWIN 1 | ||
| 41 | 39 | ||
| 42 | enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ | 40 | enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
| 43 | enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ | 41 | enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ |
| @@ -69,14 +67,13 @@ typedef struct { | |||
| 69 | typedef struct Client Client; | 67 | typedef struct Client Client; |
| 70 | struct Client { | 68 | struct Client { |
| 71 | char name[256]; | 69 | char name[256]; |
| 72 | int proto; | ||
| 73 | int x, y, w, h; | 70 | int x, y, w, h; |
| 74 | int rx, ry, rw, rh; /* revert geometry */ | 71 | int rx, ry, rw, rh; /* revert geometry */ |
| 75 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; | 72 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
| 76 | int minax, minay, maxax, maxay; | 73 | int minax, minay, maxax, maxay; |
| 77 | long flags; | 74 | long flags; |
| 78 | unsigned int border; | 75 | unsigned int border; |
| 79 | Bool isfloat, isfixed, ismax; | 76 | Bool isfixed, isfloat, ismax; |
| 80 | Bool *tags; | 77 | Bool *tags; |
| 81 | Client *next; | 78 | Client *next; |
| 82 | Client *prev; | 79 | Client *prev; |
| @@ -105,6 +102,7 @@ extern Window root, barwin; | |||
| 105 | extern void configure(Client *c); /* send synthetic configure event */ | 102 | extern void configure(Client *c); /* send synthetic configure event */ |
| 106 | extern void focus(Client *c); /* focus c, c may be NULL */ | 103 | extern void focus(Client *c); /* focus c, c may be NULL */ |
| 107 | extern Client *getclient(Window w); /* return client of w */ | 104 | extern Client *getclient(Window w); /* return client of w */ |
| 105 | extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */ | ||
| 108 | extern void killclient(Arg *arg); /* kill c nicely */ | 106 | extern void killclient(Arg *arg); /* kill c nicely */ |
| 109 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ | 107 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
| 110 | extern void resize(Client *c, Bool sizehints); /* resize c*/ | 108 | extern void resize(Client *c, Bool sizehints); /* resize c*/ |
| @@ -123,7 +121,6 @@ extern void grabkeys(void); /* grab all keys defined in config.h */ | |||
| 123 | extern void procevent(void); /* process pending X events */ | 121 | extern void procevent(void); /* process pending X events */ |
| 124 | 122 | ||
| 125 | /* main.c */ | 123 | /* main.c */ |
| 126 | extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ | ||
| 127 | extern void quit(Arg *arg); /* quit dwm nicely */ | 124 | extern void quit(Arg *arg); /* quit dwm nicely */ |
| 128 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ | 125 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
| 129 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ | 126 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
