JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
using None instead of 0 for trans
authorAnselm R Garbe <garbeam@gmail.com>
Mon, 18 Aug 2008 09:22:46 +0000 (10:22 +0100)
committerAnselm R Garbe <garbeam@gmail.com>
Mon, 18 Aug 2008 09:22:46 +0000 (10:22 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 14cf3f9..dc14bfd 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -865,7 +865,7 @@ killclient(const Arg *arg) {
 void
 manage(Window w, XWindowAttributes *wa) {
        Client *c, *t = NULL;
-       Window trans = 0;
+       Window trans = None;
        XWindowChanges wc;
 
        if(!(c = calloc(1, sizeof(Client))))
@@ -909,7 +909,7 @@ manage(Window w, XWindowAttributes *wa) {
        else
                applyrules(c);
        if(!c->isfloating)
-               c->isfloating = trans || c->isfixed;
+               c->isfloating = trans != None || c->isfixed;
        if(c->isfloating)
                XRaiseWindow(dpy, c->win);
        attach(c);