mirror of
https://github.com/swaywm/sway.git
synced 2024-11-04 15:33:13 +00:00
Fix crash when running "layout toggle"
The argc and argv used in this function are the same ones used by the layout command itself.
This commit is contained in:
parent
c6a74cb4df
commit
1f941163d3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue