]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: check if the client leader is a managed window (Thanks fernandotcl)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 22:55:53 +0000 (23:55 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 22:55:53 +0000 (23:55 +0100)
src/manage.c

index 548e5da7419c41206250180cce054e8347ef845e..53dac3d57dc4d9b00e67cfcb6ef3ec460ac8780d 100644 (file)
@@ -203,7 +203,9 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
     }
 
     if (cwindow->transient_for != XCB_NONE ||
-        (cwindow->leader != XCB_NONE && cwindow->leader != cwindow->id))
+        (cwindow->leader != XCB_NONE &&
+         cwindow->leader != cwindow->id &&
+         con_by_window_id(cwindow->leader) != NULL))
         want_floating = true;
 
     if (want_floating) {