From df79dc57677132bf581c9da17ce6d45e56996cdf Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 20 Aug 2003 23:02:26 +0000 Subject: [PATCH] add the 'raiselower' action for raising obscured windows and lowering fully visible ones --- openbox/action.c | 15 +++++++++++++++ openbox/action.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/openbox/action.c b/openbox/action.c index 01176294..4e3b83ba 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -334,6 +334,11 @@ ActionString actionstrings[] = action_iconify, NULL }, + { + "raiselower", + action_raiselower, + NULL + }, { "raise", action_raise, @@ -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); -- 2.45.2