diff options
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -855,8 +855,11 @@ cyclelayout(const Arg *arg) else if(switchto < 0) switchto = l - 1; - if (switchto != 1) - togglebar(0); + if (switchto == 2) { + if (selmon->by == selmon->my) togglebar(0); + } else { + if (selmon->by != selmon->my) togglebar(0); + } selmon->ltcur = switchto; Arg arg2 = {.v= &layouts[switchto] }; |