add the 'raiselower' action for raising obscured windows and lowering fully visible ones

This commit is contained in:
Dana Jansens 2003-08-20 23:02:26 +00:00
parent a09984bbc0
commit df79dc5767
2 changed files with 17 additions and 0 deletions

View file

@ -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)

View file

@ -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);