diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 9 |
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 | ||
263 | void HideMenuCmd::execute() { | 263 | void 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 | ||
274 | void ShowClientMenuCmd::execute() { | 267 | void ShowClientMenuCmd::execute() { |