Skip to content

Commit

Permalink
on FLOAT mode do not mark tiled clients as floating
Browse files Browse the repository at this point in the history
this results in instant tiling of non-floating
clients when switching mode away from FLOAT.
this seems to be more expected.
reference: https://bbs.archlinux.org/viewtopic.php?pid=1142030#p1142030
  • Loading branch information
c00kiemon5ter committed Aug 6, 2012
1 parent e0f3f9e commit aa557f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions monsterwm.c
Expand Up @@ -1070,10 +1070,8 @@ void swap_master(void) {
*/
void switch_mode(const Arg *arg) {
Desktop *d = &desktops[currdeskidx];
if (d->mode == arg->i && d->mode != FLOAT)
for (Client *c = d->head; c; c = c->next) c->isfloat = False;
if ((d->mode = arg->i) == FLOAT)
for (Client *c = d->head; c; c = c->next) c->isfloat = True;
if (d->mode != arg->i) d->mode = arg->i;
else if (d->mode != FLOAT) for (Client *c = d->head; c; c = c->next) c->isfloat = False;
if (d->head) { tile(d); focus(d->curr, d); }
desktopinfo();
}
Expand Down

0 comments on commit aa557f6

Please sign in to comment.