the callback for restack is called even when window is not visible now (and disabling...
[dana/dcompmgr.git] / render.c
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);