don't access sel in restack without checking for NULL (multihead crashing bug)
parent
1b3903d6e9
commit
04f27a5438
16
view.c
16
view.c
|
@ -207,13 +207,15 @@ restack()
|
||||||
|
|
||||||
fi = 0;
|
fi = 0;
|
||||||
mi = 2 * f;
|
mi = 2 * f;
|
||||||
if(sel->isfloat || arrange == dofloat) {
|
if(sel) {
|
||||||
wins[fi++] = sel->twin;
|
if(sel->isfloat || arrange == dofloat) {
|
||||||
wins[fi++] = sel->win;
|
wins[fi++] = sel->twin;
|
||||||
}
|
wins[fi++] = sel->win;
|
||||||
else {
|
}
|
||||||
wins[mi++] = sel->twin;
|
else {
|
||||||
wins[mi++] = sel->win;
|
wins[mi++] = sel->twin;
|
||||||
|
wins[mi++] = sel->win;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for(c = clients; c; c = c->next)
|
for(c = clients; c; c = c->next)
|
||||||
if(isvisible(c) && c != sel) {
|
if(isvisible(c) && c != sel) {
|
||||||
|
|
Loading…
Reference in New Issue