aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-13 00:47:40 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-13 00:47:40 (GMT)
commitb302dab2f187e364df36237c44b8e48f1e892f04 (patch)
tree207955232ddf7aef1b4a13ccb5ae85a2404aa509 /src/Window.cc
parentf66d446a94450d509748afe28a95f48b8fdfcfc5 (diff)
downloadfluxbox_pavel-b302dab2f187e364df36237c44b8e48f1e892f04.zip
fluxbox_pavel-b302dab2f187e364df36237c44b8e48f1e892f04.tar.bz2
fix some issues with reverting focus
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 3e1ad4e..86026c9 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2353,8 +2353,9 @@ void FluxboxWindow::destroyNotifyEvent(XDestroyWindowEvent &de) {
2353#ifdef DEBUG 2353#ifdef DEBUG
2354 cerr<<__FILE__<<"("<<__LINE__<<"): DestroyNotifyEvent this="<<this<<" title = "<<title()<<endl; 2354 cerr<<__FILE__<<"("<<__LINE__<<"): DestroyNotifyEvent this="<<this<<" title = "<<title()<<endl;
2355#endif // DEBUG 2355#endif // DEBUG
2356 if (numClients() == 1) 2356 delete m_client;
2357 hide(); 2357 if (numClients() == 0)
2358 delete this;
2358 } 2359 }
2359 2360
2360} 2361}
@@ -3680,9 +3681,8 @@ void FluxboxWindow::restore(WinClient *client, bool remap) {
3680 cerr<<"FluxboxWindow::restore: remap = "<<remap<<endl; 3681 cerr<<"FluxboxWindow::restore: remap = "<<remap<<endl;
3681 cerr<<__FILE__<<"("<<__FUNCTION__<<"): numClients() = "<<numClients()<<endl; 3682 cerr<<__FILE__<<"("<<__FUNCTION__<<"): numClients() = "<<numClients()<<endl;
3682#endif // DEBUG 3683#endif // DEBUG
3683 if (numClients() == 0) { 3684 if (numClients() == 0)
3684 hide(true); 3685 delete this;
3685 }
3686 3686
3687} 3687}
3688 3688