Bugfix: only set clients to floating which have a leader that is not their own window (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2010-11-14 22:49:05 +01:00
parent a27af52706
commit e8b5a802e2
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
want_floating = true; 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; want_floating = true;
if (want_floating) { if (want_floating) {