From: Michael Stapelberg Date: Sun, 28 Aug 2011 13:46:50 +0000 (+0200) Subject: Bugfix: Make 'floating enable' check for dock windows (Thanks edelkind) X-Git-Tag: 4.0.2~8^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5618875df85bab2902fef7a4c7c93bfe80e6b8df;p=i3%2Fi3 Bugfix: Make 'floating enable' check for dock windows (Thanks edelkind) Fixes #501 --- 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;