From efe8bf4acd913a48ba08c4fa390297da27d17590 Mon Sep 17 00:00:00 2001 From: rathnor Date: Sun, 8 Jun 2003 00:13:41 +0000 Subject: fix bug that left empty window frames around --- ChangeLog | 3 +++ src/fluxbox.cc | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7c0b89..f6c51a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ (Format: Year/Month/Day) Changes for 0.9.3: +*03/06/08: + * Fix bug that sometimes left window frames after window closed (Simon) + fluxbox.cc *03/06/06: * Fixes and improvements from Han (Simon, thanks Han) fluxbox-generate_menu fbsetbg diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 5b39b2f..9f5f1cc 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.151 2003/05/18 22:04:06 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.152 2003/06/08 00:13:41 rathnor Exp $ #include "fluxbox.hh" @@ -576,7 +576,8 @@ void Fluxbox::eventLoop() { XEvent e; XNextEvent(display(), &e); - if (last_bad_window != None && e.xany.window == last_bad_window) { + if (last_bad_window != None && e.xany.window == last_bad_window && + e.type != DestroyNotify) { // we must let the actual destroys through #ifdef DEBUG cerr<<"Fluxbox::eventLoop(): removing bad window from event queue"<