JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
renamed WM_PROTOCOL_DELWIN into PROTODELWIN
authorarg@10ksloc.org <unknown>
Tue, 1 Aug 2006 14:44:23 +0000 (16:44 +0200)
committerarg@10ksloc.org <unknown>
Tue, 1 Aug 2006 14:44:23 +0000 (16:44 +0200)
client.c
dwm.h
main.c

index fd91af5..434a93b 100644 (file)
--- a/client.c
+++ b/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);
diff --git a/dwm.h b/dwm.h
index 9b34210..0ed778c 100644 (file)
--- a/dwm.h
+++ b/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;
diff --git a/main.c b/main.c
index 0e94e2c..f09307b 100644 (file)
--- a/main.c
+++ b/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;