the callback for restack is called even when window is not visible now (and disabling...
authorDana Jansens <danakj@orodu.net>
Sun, 16 Mar 2008 01:14:29 +0000 (21:14 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Mar 2008 01:14:47 +0000 (21:14 -0400)
Makefile
render.c

index 63fc5ac..5b5cf0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@ headers = $(wildcard *.h)
 DFLAGS=-ggdb
 
 # for profiling
-PFLAGS=-pg -fno-inline
-PLIBS=
+#PFLAGS=-pg -fno-inline
+#PLIBS=
 
 # for electric fence
 EFLAGS=-DEFENCE
index 26bbe60..63b0a4b 100644 (file)
--- a/render.c
+++ b/render.c
@@ -490,7 +490,8 @@ render_window_restack(d_window_t *w, d_window_t *above)
     /* pass it on */
     d->window_restack(w, above);
 
-    assert(wd != NULL);
+    /* the window might not be visible */
+    if (wd == NULL) return;
 
     /* make sure the shadow region is right */
     render_update_shadow(w, d, wd);