forked from mirror/dwm
applied Eckehard Berns fix fix, sorry that this took so long
This commit is contained in:
parent
c4b6ac812e
commit
51336aa4a3
1 changed files with 5 additions and 3 deletions
8
dwm.c
8
dwm.c
|
@ -397,9 +397,10 @@ arrange(Monitor *m) {
|
||||||
showhide(m->stack);
|
showhide(m->stack);
|
||||||
else for(m = mons; m; m = m->next)
|
else for(m = mons; m; m = m->next)
|
||||||
showhide(m->stack);
|
showhide(m->stack);
|
||||||
if(m)
|
if(m) {
|
||||||
arrangemon(m);
|
arrangemon(m);
|
||||||
else for(m = mons; m; m = m->next)
|
restack(m);
|
||||||
|
} else for(m = mons; m; m = m->next)
|
||||||
arrangemon(m);
|
arrangemon(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -408,7 +409,6 @@ arrangemon(Monitor *m) {
|
||||||
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
|
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol);
|
||||||
if(m->lt[m->sellt]->arrange)
|
if(m->lt[m->sellt]->arrange)
|
||||||
m->lt[m->sellt]->arrange(m);
|
m->lt[m->sellt]->arrange(m);
|
||||||
restack(m);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1420,6 +1420,8 @@ restack(Monitor *m) {
|
||||||
drawbar(m);
|
drawbar(m);
|
||||||
if(!m->sel)
|
if(!m->sel)
|
||||||
return;
|
return;
|
||||||
|
if(m->sel->isfloating || !m->lt[m->sellt]->arrange)
|
||||||
|
XRaiseWindow(dpy, m->sel->win);
|
||||||
if(m->lt[m->sellt]->arrange) {
|
if(m->lt[m->sellt]->arrange) {
|
||||||
wc.stack_mode = Below;
|
wc.stack_mode = Below;
|
||||||
wc.sibling = m->barwin;
|
wc.sibling = m->barwin;
|
||||||
|
|
Loading…
Reference in a new issue