Browse Source

don't access sel in restack without checking for NULL (multihead crashing bug)

master
Anselm R. Garbe 18 years ago
parent
commit
04f27a5438
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      view.c

+ 9
- 7
view.c View File

@ -207,13 +207,15 @@ restack()
fi = 0;
mi = 2 * f;
if(sel->isfloat || arrange == dofloat) {
wins[fi++] = sel->twin;
wins[fi++] = sel->win;
}
else {
wins[mi++] = sel->twin;
wins[mi++] = sel->win;
if(sel) {
if(sel->isfloat || arrange == dofloat) {
wins[fi++] = sel->twin;
wins[fi++] = sel->win;
}
else {
wins[mi++] = sel->twin;
wins[mi++] = sel->win;
}
}
for(c = clients; c; c = c->next)
if(isvisible(c) && c != sel) {


Loading…
Cancel
Save