commit 63ed891ed024d1fda3846f906dab19c320d8544f
parent c14944c2b466ba0e5146863002f1af8b6d031209
Author: Kris Maglione <jg@suckless.org>
Date: Fri, 8 Feb 2008 21:38:39 -0500
Fix restacking bug.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/cmd/wmii/frame.c b/cmd/wmii/frame.c
@@ -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;
}