]> Dogcows Code - chaz/openbox/blobdiff - openbox/action.c
add an 'activate' action
[chaz/openbox] / openbox / action.c
index 9c2ded309ec66164b1c5e3814efbc585816452af..6668ac5af22e4a4e1bd1536384089a6d9262a2ee 100644 (file)
@@ -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)
This page took 0.020973 seconds and 4 git commands to generate.