applied Hiltjo's tiny cleanup fix
authorAnselm R Garbe <anselm@garbe.us>
Mon, 27 Sep 2010 07:53:44 +0000 (07:53 +0000)
committerAnselm R Garbe <anselm@garbe.us>
Mon, 27 Sep 2010 07:53:44 +0000 (07:53 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index cbe2752..0a23e5a 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1270,7 +1270,7 @@ propertynotify(XEvent *e) {
                default: break;
                case XA_WM_TRANSIENT_FOR:
                        if(!c->isfloating && (XGetTransientForHint(dpy, c->win, &trans)) &&
-                          (c->isfloating = (wintoclient(trans))))
+                          (c->isfloating = (wintoclient(trans)) != NULL))
                                arrange(c->mon);
                        break;
                case XA_WM_NORMAL_HINTS: