aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbCommands.cc14
-rw-r--r--src/FbCommands.hh7
2 files changed, 19 insertions, 2 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
109void 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
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index df83ec8..04fb9e8 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -19,7 +19,7 @@
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.hh,v 1.7 2003/06/30 14:59:38 fluxgen Exp $ 22// $Id: FbCommands.hh,v 1.8 2003/07/01 20:24:19 fluxgen Exp $
23 23
24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox 24// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
25 25
@@ -78,6 +78,11 @@ private:
78 std::string m_filename; 78 std::string m_filename;
79}; 79};
80 80
81class ShowRootMenuCmd: public FbTk::Command {
82public:
83 void execute();
84};
85
81}; // end namespace FbCommands 86}; // end namespace FbCommands
82 87
83#endif // FBCOMMANDS_HH 88#endif // FBCOMMANDS_HH