From: Michael Stapelberg Date: Sun, 14 Nov 2010 22:55:53 +0000 (+0100) Subject: bugfix: check if the client leader is a managed window (Thanks fernandotcl) X-Git-Tag: tree-pr1~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cbd53e8a7f2b3029bb257566bc8f780cb55a7783;p=i3%2Fi3 bugfix: check if the client leader is a managed window (Thanks fernandotcl) --- diff --git a/src/manage.c b/src/manage.c index 548e5da7..53dac3d5 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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) {