diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-14 05:34:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-14 05:34:51 +0000 |
| commit | 99d0b716776492c1927b8248375ce82a33bc7b26 (patch) | |
| tree | 5f59df1357d2a8b46d16ab7d262fee16d0a77851 /openbox | |
| parent | 35ed95fe18e9b8d7a79f79f4fd7466a2b46435e3 (diff) | |
add an 'activate' action
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 11 | ||||
| -rw-r--r-- | openbox/action.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index 9c2ded30..6668ac5a 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -315,6 +315,11 @@ ActionString actionstrings[] = setup_action_directional_focus_northwest }, { + "activate", + action_activate, + NULL, + }, + { "focus", action_focus, NULL, @@ -735,6 +740,12 @@ void action_execute(union ActionData *data) } } +void action_activate(union ActionData *data) +{ + if (data->client.c) + client_activate(data->client.c); +} + void action_focus(union ActionData *data) { if (data->client.c) diff --git a/openbox/action.h b/openbox/action.h index 95d15282..ef2f755e 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -136,6 +136,8 @@ void action_free(ObAction *a); /* Execute */ void action_execute(union ActionData *data); /* ClientAction */ +void action_activate(union ActionData *data); +/* ClientAction */ void action_focus(union ActionData *data); /* ClientAction */ void action_unfocus(union ActionData *data); |
