diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-20 21:44:23 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-20 21:44:23 +0200 |
| commit | 6e065e0f8d898310033ca9b268fb91be962fb4da (patch) | |
| tree | 55057ce1ef9b153d14fdaad5fda37b77844e2ae5 | |
| parent | 57aec0268a6f49225214f128143d30361a43ef9f (diff) | |
only reset floating window when switching to same mode
| -rw-r--r-- | monsterwm.c | 2 |
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(); |
