aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-30 11:59:29 (GMT)
committerfluxgen <fluxgen>2003-08-30 11:59:29 (GMT)
commitf20bcea618d52659c60ce96e885d20f60b2367d5 (patch)
treee33795314d086ef6e18a5d5b242e2f3a890baa52 /src/FbCommands.cc
parent685a3e36b36b5181cdcb10c762b3a190f50b1255 (diff)
downloadfluxbox-f20bcea618d52659c60ce96e885d20f60b2367d5.zip
fluxbox-f20bcea618d52659c60ce96e885d20f60b2367d5.tar.bz2
added workspacemenu action, thanks Mathias Gumz
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();