mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
renamed WM_PROTOCOL_DELWIN into PROTODELWIN
This commit is contained in:
parent
ab7a11c0c7
commit
080a38d62d
3 changed files with 3 additions and 3 deletions
2
client.c
2
client.c
|
@ -191,7 +191,7 @@ killclient(Arg *arg)
|
|||
{
|
||||
if(!sel)
|
||||
return;
|
||||
if(sel->proto & WM_PROTOCOL_DELWIN)
|
||||
if(sel->proto & PROTODELWIN)
|
||||
sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]);
|
||||
else
|
||||
XKillClient(dpy, sel->win);
|
||||
|
|
2
dwm.h
2
dwm.h
|
@ -9,7 +9,7 @@
|
|||
/* mask shorthands, used in event.c and client.c */
|
||||
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
|
||||
#define MOUSEMASK (BUTTONMASK | PointerMotionMask)
|
||||
#define WM_PROTOCOL_DELWIN 1
|
||||
#define PROTODELWIN 1
|
||||
|
||||
typedef union Arg Arg;
|
||||
typedef struct Client Client;
|
||||
|
|
2
main.c
2
main.c
|
@ -111,7 +111,7 @@ getproto(Window w)
|
|||
}
|
||||
for(i = 0; i < res; i++) {
|
||||
if(protocols[i] == wmatom[WMDelete])
|
||||
protos |= WM_PROTOCOL_DELWIN;
|
||||
protos |= PROTODELWIN;
|
||||
}
|
||||
free((char *) protocols);
|
||||
return protos;
|
||||
|
|
Loading…
Reference in a new issue