bugfix: check if the client leader is a managed window (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2010-11-14 23:55:53 +01:00
parent 76c07900c2
commit cbd53e8a7f

View 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 || 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; want_floating = true;
if (want_floating) { if (want_floating) {