aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--monsterwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monsterwm.c b/monsterwm.c
index e57d6bb..f64a380 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -848,8 +848,8 @@ void swap_master() {
/* switch the tiling mode and reset all floating windows */
void switch_mode(const Arg *arg) {
+ if (mode == arg->i) for (client *c=head; c; c=c->next) c->isfloating = False;
if (mode == MONOCLE) for (client *c=head; c; c=c->next) XMapWindow(dis, c->win);
- for (client *c=head; c; c=c->next) c->isfloating = False;
mode = arg->i;
master_size = (mode == BSTACK ? wh : ww) * MASTER_SIZE;
tile();