don't access sel in restack without checking for NULL (multihead crashing bug)
This commit is contained in:
parent
1b3903d6e9
commit
04f27a5438
1 changed files with 9 additions and 7 deletions
2
view.c
2
view.c
|
@ -207,6 +207,7 @@ restack()
|
||||||
|
|
||||||
fi = 0;
|
fi = 0;
|
||||||
mi = 2 * f;
|
mi = 2 * f;
|
||||||
|
if(sel) {
|
||||||
if(sel->isfloat || arrange == dofloat) {
|
if(sel->isfloat || arrange == dofloat) {
|
||||||
wins[fi++] = sel->twin;
|
wins[fi++] = sel->twin;
|
||||||
wins[fi++] = sel->win;
|
wins[fi++] = sel->win;
|
||||||
|
@ -215,6 +216,7 @@ restack()
|
||||||
wins[mi++] = sel->twin;
|
wins[mi++] = sel->twin;
|
||||||
wins[mi++] = sel->win;
|
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) {
|
||||||
if(c->isfloat || arrange == dofloat) {
|
if(c->isfloat || arrange == dofloat) {
|
||||||
|
|
Loading…
Reference in a new issue