From e8b5a802e23f7f5ec517b2ca2a230278d578ef01 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 14 Nov 2010 22:49:05 +0100 Subject: [PATCH] Bugfix: only set clients to floating which have a leader that is not their own window (Thanks fernandotcl) --- src/manage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/manage.c b/src/manage.c index 4724d704..d0ecf1eb 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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) {