Bugfix: Make 'floating enable' check for dock windows (Thanks edelkind)
Fixes #501
This commit is contained in:
parent
0b0a2dad51
commit
5618875df8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue