sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c80ad015ffa2875276ba6bb34004245f91dc5a0f
parent 64db549c1887e1f4f360aa4c30343977ae9c640a
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Mon,  9 May 2016 15:50:09 +0200

Prevent changing layout when focusing float window

The layout command should only work with titled windows, thus it should
have no effect when a floating window has focus.

Should fix #643

Diffstat:
Msway/commands.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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; }