1
1
mirror of https://github.com/swaywm/sway synced 2024-11-19 07:34:28 +01:00

Merge pull request #649 from mikkeloscar/floating-layout

Prevent changing layout when focusing float window
This commit is contained in:
Drew DeVault 2016-05-09 07:02:25 -07:00
commit 8ee764e0c2

@ -1831,6 +1831,10 @@ static struct cmd_results *cmd_layout(int argc, char **argv) {
return error; return error;
} }
swayc_t *parent = get_focused_container(&root_container); swayc_t *parent = get_focused_container(&root_container);
if (parent->is_floating) {
return cmd_results_new(CMD_FAILURE, "layout", "Unable to change layout of floating windows");
}
while (parent->type == C_VIEW) { while (parent->type == C_VIEW) {
parent = parent->parent; parent = parent->parent;
} }