Browse Source

renamed WM_PROTOCOL_DELWIN into PROTODELWIN

main
arg@10ksloc.org 18 years ago
parent
commit
080a38d62d
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      client.c
  2. +1
    -1
      dwm.h
  3. +1
    -1
      main.c

+ 1
- 1
client.c View File

@ -191,7 +191,7 @@ killclient(Arg *arg)
{ {
if(!sel) if(!sel)
return; return;
if(sel->proto & WM_PROTOCOL_DELWIN)
if(sel->proto & PROTODELWIN)
sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]); sendevent(sel->win, wmatom[WMProtocols], wmatom[WMDelete]);
else else
XKillClient(dpy, sel->win); XKillClient(dpy, sel->win);


+ 1
- 1
dwm.h View File

@ -9,7 +9,7 @@
/* mask shorthands, used in event.c and client.c */ /* mask shorthands, used in event.c and client.c */
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
#define MOUSEMASK (BUTTONMASK | PointerMotionMask) #define MOUSEMASK (BUTTONMASK | PointerMotionMask)
#define WM_PROTOCOL_DELWIN 1
#define PROTODELWIN 1
typedef union Arg Arg; typedef union Arg Arg;
typedef struct Client Client; typedef struct Client Client;


+ 1
- 1
main.c View File

@ -111,7 +111,7 @@ getproto(Window w)
} }
for(i = 0; i < res; i++) { for(i = 0; i < res; i++) {
if(protocols[i] == wmatom[WMDelete]) if(protocols[i] == wmatom[WMDelete])
protos |= WM_PROTOCOL_DELWIN;
protos |= PROTODELWIN;
} }
free((char *) protocols); free((char *) protocols);
return protos; return protos;


Loading…
Cancel
Save