aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-05-25 18:18:28 (GMT)
committermarkt <markt>2007-05-25 18:18:28 (GMT)
commit575b288654c7a97cb8232f5e3d03b327ff0aefd6 (patch)
tree87ae374eaee7c98d09e5146cdff2aa471de8ef82
parent69c54c676b549a0d2872e9e68f4a462c3cd3acea (diff)
downloadfluxbox-575b288654c7a97cb8232f5e3d03b327ff0aefd6.zip
fluxbox-575b288654c7a97cb8232f5e3d03b327ff0aefd6.tar.bz2
little fix for reverting focus from windows that destroy themselves
-rw-r--r--src/fluxbox.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 6768a25..25924c3 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -544,8 +544,11 @@ void Fluxbox::eventLoop() {
544 544
545 if (last_bad_window != None && e.xany.window == last_bad_window && 545 if (last_bad_window != None && e.xany.window == last_bad_window &&
546 e.type != DestroyNotify) { // we must let the actual destroys through 546 e.type != DestroyNotify) { // we must let the actual destroys through
547 if (e.type == FocusOut)
548 m_revert_timer.start();
547#ifdef DEBUG 549#ifdef DEBUG
548 cerr<<"Fluxbox::eventLoop(): removing bad window from event queue"<<endl; 550 else
551 cerr<<"Fluxbox::eventLoop(): removing bad window from event queue"<<endl;
549#endif // DEBUG 552#endif // DEBUG
550 } else { 553 } else {
551 last_bad_window = None; 554 last_bad_window = None;