From 63ed891ed024d1fda3846f906dab19c320d8544f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 8 Feb 2008 21:38:39 -0500 Subject: [PATCH] Fix restacking bug. --- cmd/wmii/frame.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/wmii/frame.c b/cmd/wmii/frame.c index f9d712e2..695f74a1 100644 --- 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; }