always call arrange() on setfullscreen()
also don't count full screen clients on tile()
This commit is contained in:
parent
2cd0b3173d
commit
ebff6e38a0
1 changed files with 2 additions and 2 deletions
4
dwl.c
4
dwl.c
|
@ -1034,8 +1034,8 @@ setfullscreen(Client *c, int fullscreen)
|
||||||
/* restore previous size instead of arrange for floating windows since
|
/* restore previous size instead of arrange for floating windows since
|
||||||
* client positions are set by the user and cannot be recalculated */
|
* client positions are set by the user and cannot be recalculated */
|
||||||
resize(c, c->prev.x, c->prev.y, c->prev.width, c->prev.height, 0);
|
resize(c, c->prev.x, c->prev.y, c->prev.width, c->prev.height, 0);
|
||||||
arrange(c->mon);
|
|
||||||
}
|
}
|
||||||
|
arrange(c->mon);
|
||||||
printstatus();
|
printstatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2193,7 +2193,7 @@ tile(Monitor *m)
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
wl_list_for_each(c, &clients, link)
|
wl_list_for_each(c, &clients, link)
|
||||||
if (VISIBLEON(c, m) && !c->isfloating)
|
if (VISIBLEON(c, m) && !c->isfloating && !c->isfullscreen)
|
||||||
n++;
|
n++;
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue