From: Dana Jansens Date: Mon, 10 Mar 2008 05:31:09 +0000 (-0400) Subject: make sure we don't draw the overlay window into itself X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=4e068796e187a834d1bbdc22e22b01609fa18cca;p=dana%2Fdcompmgr.git make sure we don't draw the overlay window into itself --- diff --git a/screen.c b/screen.c index 91b1975..6d454c3 100644 --- a/screen.c +++ b/screen.c @@ -8,6 +8,7 @@ #include "window.h" #include "gettext.h" #include +#include #include #include #include @@ -259,6 +260,8 @@ screen_add_window(d_screen_t *sc, xcb_window_t wid) { d_window_t *w; + assert(wid != sc->overlay); + w = window_new(wid, sc); g_hash_table_insert(sc->winhash, &w->id, w);