aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-12-11 19:29:00 (GMT)
committermarkt <markt>2007-12-11 19:29:00 (GMT)
commit474e2017454d3c6492eb9f428aee039d36d76e05 (patch)
treecae44371e3dc31d1cb3aafdd2fbf83a26527e540 /src/FbCommands.cc
parent38877987c43857f79481bedeb036380b32019a0f (diff)
downloadfluxbox-474e2017454d3c6492eb9f428aee039d36d76e05.zip
fluxbox-474e2017454d3c6492eb9f428aee039d36d76e05.tar.bz2
only allow one open menu at a time
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 1cc1afe..de14f73 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -261,14 +261,7 @@ void KeyModeCmd::execute() {
261} 261}
262 262
263void HideMenuCmd::execute() { 263void HideMenuCmd::execute() {
264 BScreen *screen = Fluxbox::instance()->mouseScreen(); 264 FbTk::Menu::hideShownMenu();
265 screen->hideMenus();
266 if (screen->rootMenu().isVisible())
267 screen->rootMenu().hide();
268 if (screen->workspaceMenu().isVisible())
269 screen->workspaceMenu().hide();
270 if (FbTk::Menu::shownMenu())
271 FbTk::Menu::shownMenu()->hide();
272} 265}
273 266
274void ShowClientMenuCmd::execute() { 267void ShowClientMenuCmd::execute() {