From 5618875df85bab2902fef7a4c7c93bfe80e6b8df Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Aug 2011 15:46:50 +0200 Subject: [PATCH] Bugfix: Make 'floating enable' check for dock windows (Thanks edelkind) Fixes #501 --- src/floating.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/floating.c b/src/floating.c index 343b4338..9f5655c7 100644 --- a/src/floating.c +++ b/src/floating.c @@ -19,6 +19,11 @@ extern xcb_connection_t *conn; void floating_enable(Con *con, bool automatic) { bool set_focus = (con == focused); + if (con->parent && con->parent->type == CT_DOCKAREA) { + LOG("Container is a dock window, not enabling floating mode.\n"); + return; + } + if (con_is_floating(con)) { LOG("Container is already in floating mode, not doing anything.\n"); return;