diff options
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r-- | src/FbCommands.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 6dee267..1c84154 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc | |||
@@ -19,12 +19,13 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: FbCommands.cc,v 1.10 2003/06/30 15:00:32 fluxgen Exp $ | 22 | // $Id: FbCommands.cc,v 1.11 2003/07/01 20:24:19 fluxgen Exp $ |
23 | 23 | ||
24 | #include "FbCommands.hh" | 24 | #include "FbCommands.hh" |
25 | #include "fluxbox.hh" | 25 | #include "fluxbox.hh" |
26 | #include "FbTk/Theme.hh" | 26 | #include "FbTk/Theme.hh" |
27 | #include "Screen.hh" | 27 | #include "Screen.hh" |
28 | #include "Menu.hh" | ||
28 | 29 | ||
29 | #include <sys/types.h> | 30 | #include <sys/types.h> |
30 | #include <unistd.h> | 31 | #include <unistd.h> |
@@ -105,4 +106,15 @@ void SetStyleCmd::execute() { | |||
105 | 106 | ||
106 | } | 107 | } |
107 | 108 | ||
109 | void ShowRootMenuCmd::execute() { | ||
110 | BScreen *screen = Fluxbox::instance()->mouseScreen(); | ||
111 | if (screen == 0) | ||
112 | return; | ||
113 | |||
114 | if (screen->getRootmenu()) { | ||
115 | screen->getRootmenu()->show(); | ||
116 | screen->getRootmenu()->grabInputFocus(); | ||
117 | } | ||
118 | } | ||
119 | |||
108 | }; // end namespace FbCommands | 120 | }; // end namespace FbCommands |