]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: only set clients to floating which have a leader that is not their own window...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 21:49:05 +0000 (22:49 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 14 Nov 2010 21:49:05 +0000 (22:49 +0100)
src/manage.c

index 4724d704190a1950dd0ff82c47c43f686183c03e..d0ecf1eba1ba11ca79ba7f1670284908dfc9af00 100644 (file)
@@ -200,7 +200,8 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
         want_floating = true;
     }
 
-    if (cwindow->transient_for != XCB_NONE || cwindow->leader != XCB_NONE)
+    if (cwindow->transient_for != XCB_NONE ||
+        (cwindow->leader != XCB_NONE && cwindow->leader != cwindow->id))
         want_floating = true;
 
     if (want_floating) {