aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event.c3
-rw-r--r--src/key.c1
-rw-r--r--src/key.h25
-rw-r--r--src/parse.c1
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);
diff --git a/src/key.c b/src/key.c
index 73c6f91..52d3df2 100644
--- a/src/key.c
+++ b/src/key.c
@@ -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:
diff --git a/src/key.h b/src/key.h
index 736336b..4386720 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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 },