From: Dana Jansens Date: Sun, 16 Mar 2008 01:14:29 +0000 (-0400) Subject: the callback for restack is called even when window is not visible now (and disabling... X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=9c589b33e923b939aa78f003574377a14ac1501f;p=dana%2Fdcompmgr.git the callback for restack is called even when window is not visible now (and disabling profiling in the makefile) --- diff --git a/Makefile b/Makefile index 63fc5ac..5b5cf0c 100644 --- 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 diff --git a/render.c b/render.c index 26bbe60..63b0a4b 100644 --- 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);