forked from mirror/dwm
I prefer doing the check in showhide
This commit is contained in:
parent
c1c6fdc5d8
commit
862b0d541d
1 changed files with 7 additions and 5 deletions
10
dwm.c
10
dwm.c
|
@ -272,7 +272,6 @@ applyrules(Client *c) {
|
|||
|
||||
void
|
||||
arrange(void) {
|
||||
if(stack)
|
||||
showhide(stack);
|
||||
focus(NULL);
|
||||
if(lt[sellt]->arrange)
|
||||
|
@ -1369,16 +1368,19 @@ setup(void) {
|
|||
|
||||
void
|
||||
showhide(Client *c) {
|
||||
if(!c)
|
||||
return;
|
||||
if(ISVISIBLE(c)) { /* show clients top down */
|
||||
XMoveWindow(dpy, c->win, c->x, c->y);
|
||||
if(!lt[sellt]->arrange || c->isfloating)
|
||||
resize(c, c->x, c->y, c->w, c->h, True);
|
||||
}
|
||||
if(c->snext) /* hide clients bottom up */
|
||||
showhide(c->snext);
|
||||
if(!ISVISIBLE(c))
|
||||
}
|
||||
else { /* hide clients bottom up */
|
||||
showhide(c->snext);
|
||||
XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
spawn(const Arg *arg) {
|
||||
|
|
Loading…
Reference in a new issue