sway

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

commit 1f941163d3a74b03d2fbbb3376f89f11664c36ba
parent c6a74cb4df7a50138390a37eb031ef8bd35df7fc
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Thu,  6 Sep 2018 14:29:26 +1000

Fix crash when running "layout toggle"

The argc and argv used in this function are the same ones used by the
layout command itself.

Diffstat:
Msway/commands/layout.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/commands/layout.c b/sway/commands/layout.c @@ -29,7 +29,7 @@ static enum sway_container_layout get_layout_toggle(int argc, char **argv, enum sway_container_layout layout, enum sway_container_layout prev_split_layout) { // "layout toggle" - if (argc == 0) { + if (argc == 1) { return layout == L_HORIZ ? L_VERT : L_HORIZ; }