renamed WM_PROTOCOL_DELWIN into PROTODELWIN 080a38d6
arg@10ksloc.org · 2006-08-01 16:44 3 file(s) · +3 −3
client.c +1 −1
191 191
{
192 192
	if(!sel)
193 193
		return;
194 -
	if(sel->proto & WM_PROTOCOL_DELWIN)
194 +
	if(sel->proto & PROTODELWIN)
195 195
		sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]);
196 196
	else
197 197
		XKillClient(dpy, sel->win);
dwm.h +1 −1
9 9
/* mask shorthands, used in event.c and client.c */
10 10
#define BUTTONMASK		(ButtonPressMask | ButtonReleaseMask)
11 11
#define MOUSEMASK		(BUTTONMASK | PointerMotionMask)
12 -
#define WM_PROTOCOL_DELWIN	1
12 +
#define PROTODELWIN		1
13 13
14 14
typedef union Arg Arg;
15 15
typedef struct Client Client;
main.c +1 −1
111 111
	}
112 112
	for(i = 0; i < res; i++) {
113 113
		if(protocols[i] == wmatom[WMDelete])
114 -
			protos |= WM_PROTOCOL_DELWIN;
114 +
			protos |= PROTODELWIN;
115 115
	}
116 116
	free((char *) protocols);
117 117
	return protos;