aboutsummaryrefslogtreecommitdiff
path: root/src/ClientMenu.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-18 22:17:19 (GMT)
committermarkt <markt>2007-07-18 22:17:19 (GMT)
commitf6c5f7e9abbf808fb446a38ff1285b54510a04ed (patch)
tree05c903335f226022980e6d66260e31fcd4f6a7b8 /src/ClientMenu.cc
parent9c843719a37eb3f63276f338bbc7cc227dc4e439 (diff)
downloadfluxbox-f6c5f7e9abbf808fb446a38ff1285b54510a04ed.zip
fluxbox-f6c5f7e9abbf808fb446a38ff1285b54510a04ed.tar.bz2
fix bug with SemiFollow
Diffstat (limited to 'src/ClientMenu.cc')
-rw-r--r--src/ClientMenu.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ClientMenu.cc b/src/ClientMenu.cc
index c70da85..ae35aab 100644
--- a/src/ClientMenu.cc
+++ b/src/ClientMenu.cc
@@ -46,9 +46,14 @@ public:
46 FluxboxWindow *fbwin = m_client.fbwindow(); 46 FluxboxWindow *fbwin = m_client.fbwindow();
47 if (fbwin == 0) 47 if (fbwin == 0)
48 return; 48 return;
49
50 // this MenuItem object can get destroyed as a result of focus(), so we
51 // must get a local copy of the parent menu
52 FbTk::Menu *parent = menu();
53
49 m_client.focus(); 54 m_client.focus();
50 fbwin->raise(); 55 fbwin->raise();
51 menu()->hide(); 56 parent->hide();
52 } 57 }
53 58
54 const std::string &label() const { return m_client.title(); } 59 const std::string &label() const { return m_client.title(); }