diff options
Diffstat (limited to '')
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | main.c | 2 |
3 files changed, 3 insertions, 3 deletions
| @@ -191,7 +191,7 @@ killclient(Arg *arg) | |||
| 191 | { | 191 | { |
| 192 | if(!sel) | 192 | if(!sel) |
| 193 | return; | 193 | return; |
| 194 | if(sel->proto & WM_PROTOCOL_DELWIN) | 194 | if(sel->proto & PROTODELWIN) |
| 195 | sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]); | 195 | sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]); |
| 196 | else | 196 | else |
| 197 | XKillClient(dpy, sel->win); | 197 | XKillClient(dpy, sel->win); |
| @@ -9,7 +9,7 @@ | |||
| 9 | /* mask shorthands, used in event.c and client.c */ | 9 | /* mask shorthands, used in event.c and client.c */ |
| 10 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) | 10 | #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) |
| 11 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) | 11 | #define MOUSEMASK (BUTTONMASK | PointerMotionMask) |
| 12 | #define WM_PROTOCOL_DELWIN 1 | 12 | #define PROTODELWIN 1 |
| 13 | 13 | ||
| 14 | typedef union Arg Arg; | 14 | typedef union Arg Arg; |
| 15 | typedef struct Client Client; | 15 | typedef struct Client Client; |
| @@ -111,7 +111,7 @@ getproto(Window w) | |||
| 111 | } | 111 | } |
| 112 | for(i = 0; i < res; i++) { | 112 | for(i = 0; i < res; i++) { |
| 113 | if(protocols[i] == wmatom[WMDelete]) | 113 | if(protocols[i] == wmatom[WMDelete]) |
| 114 | protos |= WM_PROTOCOL_DELWIN; | 114 | protos |= PROTODELWIN; |
| 115 | } | 115 | } |
| 116 | free((char *) protocols); | 116 | free((char *) protocols); |
| 117 | return protos; | 117 | return protos; |
