Don't disable floating in internal workspaces

This commit is contained in:
Orestis Floros
2018-08-28 10:26:07 +03:00
parent 08a53611f9
commit 9718e38a7a
2 changed files with 20 additions and 0 deletions

View File

@ -366,6 +366,10 @@ void floating_disable(Con *con, bool automatic) {
}
Con *ws = con_get_workspace(con);
if (con_is_internal(ws)) {
LOG("Can't disable floating for container in internal workspace.\n");
return;
}
Con *tiling_focused = con_descend_tiling_focused(ws);
if (tiling_focused->type == CT_WORKSPACE) {