mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
Fix restacking bug.
This commit is contained in:
parent
c14944c2b4
commit
63ed891ed0
@ -99,6 +99,8 @@ frame_restack(Frame *f, Frame *above) {
|
||||
a = f->area;
|
||||
if(!a->floating)
|
||||
return false;
|
||||
if(f == above)
|
||||
return false;
|
||||
|
||||
if(above == nil && !(c->w.ewmh.type & TypeDock))
|
||||
for(fp=a->stack; fp; fp=fp->snext)
|
||||
@ -129,6 +131,7 @@ frame_restack(Frame *f, Frame *above) {
|
||||
}
|
||||
if(f->snext)
|
||||
f->snext->sprev = f;
|
||||
assert(f->snext != f && f->sprev != f);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user