diff options
author | markt <markt> | 2007-12-11 19:29:00 (GMT) |
---|---|---|
committer | markt <markt> | 2007-12-11 19:29:00 (GMT) |
commit | 474e2017454d3c6492eb9f428aee039d36d76e05 (patch) | |
tree | cae44371e3dc31d1cb3aafdd2fbf83a26527e540 /src/Screen.cc | |
parent | 38877987c43857f79481bedeb036380b32019a0f (diff) | |
download | fluxbox_pavel-474e2017454d3c6492eb9f428aee039d36d76e05.zip fluxbox_pavel-474e2017454d3c6492eb9f428aee039d36d76e05.tar.bz2 |
only allow one open menu at a time
Diffstat (limited to 'src/Screen.cc')
-rw-r--r-- | src/Screen.cc | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 7682075..79a75ef 100644 --- a/src/Screen.cc +++ b/src/Screen.cc | |||
@@ -909,43 +909,6 @@ void BScreen::addExtraWindowMenu(const FbTk::FbString &label, FbTk::Menu *menu) | |||
909 | m_windowmenu->setInternalMenu(); | 909 | m_windowmenu->setInternalMenu(); |
910 | } | 910 | } |
911 | 911 | ||
912 | void BScreen::hideMenus() { | ||
913 | // hide extra menus | ||
914 | Fluxbox::instance()->hideExtraMenus(*this); | ||
915 | |||
916 | #ifdef SLIT | ||
917 | // hide slit menu | ||
918 | if (slit()) | ||
919 | slit()->menu().hide(); | ||
920 | #endif // SLIT | ||
921 | |||
922 | // hide icon menus | ||
923 | if (!iconList().empty()) { | ||
924 | Icons::iterator it = iconList().begin(); | ||
925 | const Icons::iterator it_end = iconList().end(); | ||
926 | for (; it != it_end; ++it) | ||
927 | (*it)->menu().hide(); | ||
928 | } | ||
929 | // hide all client menus | ||
930 | hideWindowMenus(); | ||
931 | |||
932 | } | ||
933 | |||
934 | void BScreen::hideWindowMenus(const FluxboxWindow* except) { | ||
935 | Workspaces::iterator w_it = getWorkspacesList().begin(); | ||
936 | const Workspaces::iterator w_it_end = getWorkspacesList().end(); | ||
937 | for (; w_it != w_it_end; ++w_it) { | ||
938 | if (!(*w_it)->windowList().empty()) { | ||
939 | Workspace::Windows::iterator win_it = (*w_it)->windowList().begin(); | ||
940 | const Workspace::Windows::iterator win_it_end = (*w_it)->windowList().end(); | ||
941 | for (; win_it != win_it_end; ++win_it) { | ||
942 | if (*win_it != except) | ||
943 | (*win_it)->menu().hide(); | ||
944 | } | ||
945 | } | ||
946 | } | ||
947 | } | ||
948 | |||
949 | void BScreen::reconfigure() { | 912 | void BScreen::reconfigure() { |
950 | Fluxbox *fluxbox = Fluxbox::instance(); | 913 | Fluxbox *fluxbox = Fluxbox::instance(); |
951 | 914 | ||