all repos — openbox @ 99d0b716776492c1927b8248375ce82a33bc7b26

openbox fork - make it a bit more like ryudo

add an 'activate' action
Dana Jansens danakj@orodu.net
commit

99d0b716776492c1927b8248375ce82a33bc7b26

parent

35ed95fe18e9b8d7a79f79f4fd7466a2b46435e3

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M openbox/action.copenbox/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.hopenbox/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);