aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/asciidoc/fluxbox-keys.txt6
-rw-r--r--src/WorkspaceCmd.cc20
-rw-r--r--src/WorkspaceCmd.hh10
3 files changed, 36 insertions, 0 deletions
diff --git a/doc/asciidoc/fluxbox-keys.txt b/doc/asciidoc/fluxbox-keys.txt
index 560e94d..7d295f2 100644
--- a/doc/asciidoc/fluxbox-keys.txt
+++ b/doc/asciidoc/fluxbox-keys.txt
@@ -441,9 +441,15 @@ doing so.
441*ToggleSlitAbove*:: 441*ToggleSlitAbove*::
442 Toggles the slit between its regular and the AboveDock layer 442 Toggles the slit between its regular and the AboveDock layer
443 443
444*ToggleSlitHidden*::
445 Toggles the slit's autohiding state (autohide doesn't have to be enabled)
446
444*ToggleToolbarAbove*:: 447*ToggleToolbarAbove*::
445 Toggles the toolbar between its regular and the AboveDock layer 448 Toggles the toolbar between its regular and the AboveDock layer
446 449
450*ToggleToolbarHidden*::
451 Toggles the toolbar's autohiding state (autohide doesn't have to be enabled)
452
447*Deiconify* 'mode' 'destination':: 453*Deiconify* 'mode' 'destination'::
448Deiconifies windows (or, restores from a minimized state). 454Deiconifies windows (or, restores from a minimized state).
449+ 455+
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index c2a2f8d..bdba96c 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -634,6 +634,16 @@ void ToggleSlitAboveCmd::execute() {
634#endif 634#endif
635} 635}
636 636
637REGISTER_COMMAND(toggleslithidden, ToggleSlitHiddenCmd, void);
638void ToggleSlitHiddenCmd::execute() {
639#if USE_SLIT
640 if (BScreen *screen = Fluxbox::instance()->mouseScreen()) {
641 screen->slit()->toggleHidden();
642 const_cast<FbTk::FbWindow&>(screen->slit()->window()).raise();
643 }
644#endif
645}
646
637REGISTER_COMMAND(toggletoolbarabove, ToggleToolbarAboveCmd, void); 647REGISTER_COMMAND(toggletoolbarabove, ToggleToolbarAboveCmd, void);
638void ToggleToolbarAboveCmd::execute() { 648void ToggleToolbarAboveCmd::execute() {
639#if USE_TOOLBAR 649#if USE_TOOLBAR
@@ -644,6 +654,16 @@ void ToggleToolbarAboveCmd::execute() {
644#endif 654#endif
645} 655}
646 656
657REGISTER_COMMAND(toggletoolbarvisible, ToggleToolbarHiddenCmd, void);
658void ToggleToolbarHiddenCmd::execute() {
659#if USE_TOOLBAR
660 if (BScreen *screen = Fluxbox::instance()->mouseScreen()) {
661 screen->toolbar()->toggleHidden();
662 const_cast<FbTk::FbWindow&>(screen->toolbar()->window()).raise();
663 }
664#endif
665}
666
647REGISTER_COMMAND(closeallwindows, CloseAllWindowsCmd, void); 667REGISTER_COMMAND(closeallwindows, CloseAllWindowsCmd, void);
648 668
649void CloseAllWindowsCmd::execute() { 669void CloseAllWindowsCmd::execute() {
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh
index 1766b3a..ae0b577 100644
--- a/src/WorkspaceCmd.hh
+++ b/src/WorkspaceCmd.hh
@@ -197,11 +197,21 @@ public:
197 void execute(); 197 void execute();
198}; 198};
199 199
200class ToggleSlitHiddenCmd: public FbTk::Command<void> {
201public:
202 void execute();
203};
204
200class ToggleToolbarAboveCmd: public FbTk::Command<void> { 205class ToggleToolbarAboveCmd: public FbTk::Command<void> {
201public: 206public:
202 void execute(); 207 void execute();
203}; 208};
204 209
210class ToggleToolbarHiddenCmd: public FbTk::Command<void> {
211public:
212 void execute();
213};
214
205class CloseAllWindowsCmd: public FbTk::Command<void> { 215class CloseAllWindowsCmd: public FbTk::Command<void> {
206public: 216public:
207 void execute(); 217 void execute();