aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index 61e22e7..61b9e3e 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -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.cc,v 1.14 2003/08/26 23:52:09 fluxgen Exp $ 22// $Id: FbCommands.cc,v 1.15 2003/08/30 11:59:29 fluxgen Exp $
23 23
24#include "FbCommands.hh" 24#include "FbCommands.hh"
25#include "fluxbox.hh" 25#include "fluxbox.hh"
@@ -114,6 +114,17 @@ void ShowRootMenuCmd::execute() {
114 } 114 }
115} 115}
116 116
117void ShowWorkspaceMenuCmd::execute() {
118 BScreen *screen = Fluxbox::instance()->mouseScreen();
119 if (screen == 0)
120 return;
121
122 if (screen->getWorkspacemenu()) {
123 screen->getWorkspacemenu()->show();
124 screen->getWorkspacemenu()->grabInputFocus();
125 }
126}
127
117void SetWorkspaceNameCmd::execute() { 128void SetWorkspaceNameCmd::execute() {
118 129
119 BScreen *screen = Fluxbox::instance()->mouseScreen(); 130 BScreen *screen = Fluxbox::instance()->mouseScreen();