diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-20 23:02:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-20 23:02:26 +0000 |
| commit | df79dc57677132bf581c9da17ce6d45e56996cdf (patch) | |
| tree | e11212aeb80684612f0d6d278655fea644e47192 /openbox | |
| parent | a09984bbc076bc37b11058237f51fa15114129e2 (diff) | |
add the 'raiselower' action for raising obscured windows and lowering fully visible ones
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 15 | ||||
| -rw-r--r-- | openbox/action.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index 01176294..4e3b83ba 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -335,6 +335,11 @@ ActionString actionstrings[] = NULL }, { + "raiselower", + action_raiselower, + NULL + }, + { "raise", action_raise, NULL @@ -767,6 +772,16 @@ void action_iconify(union ActionData *data) client_iconify(data->client.c, TRUE, TRUE); } +void action_raiselower(union ActionData *data) +{ + if (data->client.c) { + if (data->client.c->frame->obscured) + stacking_raise(CLIENT_AS_WINDOW(data->client.c)); + else + stacking_lower(CLIENT_AS_WINDOW(data->client.c)); + } +} + void action_raise(union ActionData *data) { if (data->client.c) diff --git a/openbox/action.h b/openbox/action.h index f84217e3..64bb99de 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -150,6 +150,8 @@ void action_unfocus(union ActionData *data); /* ClientAction */ void action_iconify(union ActionData *data); /* ClientAction */ +void action_raiselower(union ActionData *data); +/* ClientAction */ void action_raise(union ActionData *data); /* ClientAction */ void action_lower(union ActionData *data); |
