mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
Merge pull request #2587 from RyanDwyer/fix-layout-toggle-crash
Fix crash when running "layout toggle"
This commit is contained in:
commit
63567f5ac6
1 changed files with 1 additions and 1 deletions
|
@ -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