From 9c589b33e923b939aa78f003574377a14ac1501f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 15 Mar 2008 21:14:29 -0400 Subject: [PATCH] the callback for restack is called even when window is not visible now (and disabling profiling in the makefile) --- Makefile | 4 ++-- render.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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); -- 2.34.1