aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 6470b69..0311511 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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] };