diff options
author | fluxgen <fluxgen> | 2003-07-01 20:24:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-07-01 20:24:19 (GMT) |
commit | 0409604f3ad30016217a66c251dfab1f4a7ecb97 (patch) | |
tree | ef9284a434de689e48e28d5db377f35a80efa43e /src/FbCommands.cc | |
parent | e6e43b00526364a7307064e7ceaf409aa0a90bd6 (diff) | |
download | fluxbox_pavel-0409604f3ad30016217a66c251dfab1f4a7ecb97.zip fluxbox_pavel-0409604f3ad30016217a66c251dfab1f4a7ecb97.tar.bz2 |
added ShowRootMenuCmd
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 |