add an 'activate' action
Dana Jansens danakj@orodu.net
2 files changed,
13 insertions(+),
0 deletions(-)
M
openbox/action.c
→
openbox/action.c
@@ -315,6 +315,11 @@ action_directional_focus,
setup_action_directional_focus_northwest }, { + "activate", + action_activate, + NULL, + }, + { "focus", action_focus, NULL,@@ -733,6 +738,12 @@ } else {
g_warning("failed to convert '%s' from utf8", data->execute.path); } } +} + +void action_activate(union ActionData *data) +{ + if (data->client.c) + client_activate(data->client.c); } void action_focus(union ActionData *data)
M
openbox/action.h
→
openbox/action.h
@@ -136,6 +136,8 @@
/* 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);