diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-05-09 07:02:25 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-05-09 07:02:25 -0700 |
commit | 8ee764e0c24378fe3d8e430bdbb40ea58ac9c28d (patch) | |
tree | caf0a66e51fddadc5a1346766d04740cc064c204 /sway | |
parent | 64db549c1887e1f4f360aa4c30343977ae9c640a (diff) | |
parent | c80ad015ffa2875276ba6bb34004245f91dc5a0f (diff) |
Merge pull request #649 from mikkeloscar/floating-layout
Prevent changing layout when focusing float window
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c index 83f09788..22621453 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1831,6 +1831,10 @@ static struct cmd_results *cmd_layout(int argc, char **argv) { return error; } 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) { parent = parent->parent; } |