summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-01 16:44:23 +0200
committerarg@10ksloc.org <unknown>2006-08-01 16:44:23 +0200
commit080a38d62d18be2ab98f66ed190d3d9e3463fec9 (patch)
tree1d0574e3a5cdf6fecc145dc65db5061e7c19b7d3
parentrenamed ARRANGE into DEFMODE (diff)
downloaddwm-080a38d62d18be2ab98f66ed190d3d9e3463fec9.tar.gz
dwm-080a38d62d18be2ab98f66ed190d3d9e3463fec9.zip
renamed WM_PROTOCOL_DELWIN into PROTODELWIN
Diffstat (limited to '')
-rw-r--r--client.c2
-rw-r--r--dwm.h2
-rw-r--r--main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index fd91af5..434a93b 100644
--- a/client.c
+++ b/client.c
@@ -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);
diff --git a/dwm.h b/dwm.h
index 9b34210..0ed778c 100644
--- a/dwm.h
+++ b/dwm.h
@@ -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
14typedef union Arg Arg; 14typedef union Arg Arg;
15typedef struct Client Client; 15typedef struct Client Client;
diff --git a/main.c b/main.c
index 0e94e2c..f09307b 100644
--- a/main.c
+++ b/main.c
@@ -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;