added ToggleTab
This commit is contained in:
parent
7c2c942f3c
commit
9b8c02c542
3 changed files with 9 additions and 3 deletions
|
@ -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}
|
||||
};
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue