]> Dogcows Code - chaz/openbox/commitdiff
add an 'activate' action
authorDana Jansens <danakj@orodu.net>
Thu, 14 Aug 2003 05:34:51 +0000 (05:34 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 14 Aug 2003 05:34:51 +0000 (05:34 +0000)
openbox/action.c
openbox/action.h

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)
index 95d152829ed0ced663183997ede3e5bc3ee8bf8f..ef2f755efb7d9137dcb47bc1355c7c13aa249ea8 100644 (file)
@@ -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);
This page took 0.031085 seconds and 4 git commands to generate.