JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
implemented regexp matching for rules
[dwm.git] / client.c
index ccd8100..aa96f4f 100644 (file)
--- a/client.c
+++ b/client.c
@@ -247,8 +247,9 @@ manage(Window w, XWindowAttributes *wa)
                        GrabModeAsync, GrabModeSync, None, None);
 
        if(!c->isfloat)
-               c->isfloat = trans
-                       || ((c->maxw == c->minw) && (c->maxh == c->minh));
+               c->isfloat = trans || (c->maxw && c->minw &&
+                               (c->maxw == c->minw) && (c->maxh == c->minh));
+
 
        setgeom(c);
        settitle(c);