From 99d0b716776492c1927b8248375ce82a33bc7b26 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 14 Aug 2003 05:34:51 +0000 Subject: add an 'activate' action --- openbox/action.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index 9c2ded30..6668ac5a 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -314,6 +314,11 @@ ActionString actionstrings[] = action_directional_focus, setup_action_directional_focus_northwest }, + { + "activate", + action_activate, + NULL, + }, { "focus", action_focus, @@ -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) -- cgit v1.2.3