| src/ActionHandler.cc | |
| 356 | @@ -356,7 +356,6 @@ |
| 356 | break; |
| 357 | case ACTION_HIDE_ALL_MENUS: |
| 358 | WindowManager::inst()->hideAllMenus(); |
| 359 | WindowManager::inst()->findWOAndFocus(NULL); |
| 360 | break; |
| 361 | #endif // MENUS |
| 362 | case ACTION_RELOAD: |
| ... | |
| src/WindowManager.cc | |
| 2109 | @@ -2109,10 +2109,20 @@ |
| 2109 | void |
| 2110 | WindowManager::hideAllMenus(void) |
| 2111 | { |
| 2112 | bool do_focus = false; |
| 2113 | PWinObj *wo = PWinObj::getFocusedPWinObj(); |
| 2114 | if (wo && wo->getType() == PWinObj::WO_MENU) { |
| 2115 | do_focus = true; |
| 2116 | } |
| 2117 | |
| 2118 | map<std::string, PMenu*>::iterator it(_menu_map.begin()); |
| 2119 | for (; it != _menu_map.end(); ++it) { |
| 2120 | it->second->unmapAll(); |
| 2121 | } |
| 2122 | |
| 2123 | if (do_focus) { |
| 2124 | findWOAndFocus(0); |
| 2125 | } |
| 2126 | } |
| 2127 | #endif // MENUS |
| 2128 | // here follows methods for hints and atoms |
| ... | |