From 9b8c02c54298b36e05ea266e80a26960b540c8f6 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 19 Apr 2002 09:33:42 +0000 Subject: added ToggleTab --- src/Keys.cc | 3 ++- src/Keys.hh | 3 ++- src/fluxbox.cc | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Keys.cc b/src/Keys.cc index 7e0d907..a8af404 100644 --- a/src/Keys.cc +++ b/src/Keys.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -//$Id: Keys.cc,v 1.14 2002/04/09 09:40:18 fluxgen Exp $ +//$Id: Keys.cc,v 1.15 2002/04/19 09:33:42 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h" @@ -123,6 +123,7 @@ Keys::t_actionstr Keys::m_actionlist[] = { {"HorizontalDecrement", HORIZDEC}, {"VerticalDecrement", VERTDEC}, {"ToggleDecor", TOGGLEDECOR}, + {"ToggleTab", TOGGLETAB}, {"RootMenu", ROOTMENU}, {0, LASTKEYGRAB} }; diff --git a/src/Keys.hh b/src/Keys.hh index 31f4734..0b6e862 100644 --- a/src/Keys.hh +++ b/src/Keys.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Keys.hh,v 1.10 2002/04/09 09:40:18 fluxgen Exp $ +// $Id: Keys.hh,v 1.11 2002/04/19 09:33:42 fluxgen Exp $ #ifndef KEYS_HH #define KEYS_HH @@ -53,6 +53,7 @@ public: BIGNUDGERIGHT, BIGNUDGELEFT, BIGNUDGEUP, BIGNUDGEDOWN, HORIZINC, VERTINC, HORIZDEC, VERTDEC, TOGGLEDECOR, + TOGGLETAB, ROOTMENU, LASTKEYGRAB }; diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 3e7f475..7eaef18 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.51 2002/04/17 06:57:10 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.52 2002/04/19 09:33:42 fluxgen Exp $ //Use some GNU extensions #ifndef _GNU_SOURCE @@ -1444,6 +1444,10 @@ void Fluxbox::doWindowAction(Keys::KeyAction action, const int param) { break; case Keys::TOGGLEDECOR: focused_window->toggleDecoration(); + break; + case Keys::TOGGLETAB: + focused_window->setTab(!focused_window->hasTab()); + break; default: //do nothing break; } -- cgit v0.11.2