Bugfix: Make 'floating enable' check for dock windows (Thanks edelkind)

Fixes #501
next
Michael Stapelberg 2011-08-28 15:46:50 +02:00
parent 0b0a2dad51
commit 5618875df8
1 changed files with 5 additions and 0 deletions

View File

@ -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;