diff options
-rw-r--r-- | src/event.c | 3 | ||||
-rw-r--r-- | src/key.c | 1 | ||||
-rw-r--r-- | src/key.h | 25 | ||||
-rw-r--r-- | src/parse.c | 1 |
4 files changed, 18 insertions, 12 deletions
diff --git a/src/event.c b/src/event.c index 4918401..8bd5ba8 100644 --- a/src/event.c +++ b/src/event.c @@ -366,6 +366,9 @@ void HandleKeyPress(const XKeyEvent *event) { case KEY_PREV_STACKED: FocusPreviousStackedCircular(); break; + case KEY_RAISE: + RaiseClient(np); + break; case KEY_CLOSE: if(np) { DeleteClient(np); @@ -244,6 +244,7 @@ int ShouldGrab(KeyType key) { case KEY_NEXT_STACKED: case KEY_PREV: case KEY_PREV_STACKED: + case KEY_RAISE: case KEY_CLOSE: case KEY_MIN: case KEY_MAX: @@ -24,18 +24,19 @@ typedef enum { KEY_NEXT_STACKED = 8, KEY_PREV = 9, KEY_PREV_STACKED = 10, - KEY_CLOSE = 11, - KEY_MIN = 12, - KEY_MAX = 13, - KEY_SHADE = 14, - KEY_MOVE = 15, - KEY_RESIZE = 16, - KEY_ROOT = 17, - KEY_WIN = 18, - KEY_DESKTOP = 19, - KEY_EXEC = 20, - KEY_RESTART = 21, - KEY_EXIT = 22 + KEY_RAISE = 11, + KEY_CLOSE = 12, + KEY_MIN = 13, + KEY_MAX = 14, + KEY_SHADE = 15, + KEY_MOVE = 16, + KEY_RESIZE = 17, + KEY_ROOT = 18, + KEY_WIN = 19, + KEY_DESKTOP = 20, + KEY_EXEC = 21, + KEY_RESTART = 22, + KEY_EXIT = 23 } KeyType; void InitializeKeys(); diff --git a/src/parse.c b/src/parse.c index 023ae23..08dd70c 100644 --- a/src/parse.c +++ b/src/parse.c @@ -51,6 +51,7 @@ static const KeyMapType KEY_MAP[] = { { "nextstacked", KEY_NEXT_STACKED }, { "prev", KEY_PREV }, { "prevstacked", KEY_PREV_STACKED }, + { "raise", KEY_RAISE }, { "close", KEY_CLOSE }, { "minimize", KEY_MIN }, { "maximize", KEY_MAX }, |