add flash action
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 02:57:53 +0000 (02:57 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 02:57:53 +0000 (02:57 +0000)
openbox/action.c
openbox/action.h

index 6e750d6..00e87b2 100644 (file)
@@ -705,6 +705,11 @@ ActionString actionstrings[] =
         NULL
     },
     {
+        "flash",
+        action_flash,
+        NULL
+    },
+    {
         NULL,
         NULL,
         NULL
@@ -1268,3 +1273,9 @@ void action_vibrate(union ActionData *data)
         }
     }
 }
+
+void action_flash(union ActionData *data)
+{
+    if (!data->client.any.c) return;
+    frame_flash(data->client.any.c->frame);
+}
index db618b3..116bddc 100644 (file)
@@ -246,5 +246,7 @@ void action_show_desktop(union ActionData *data);
 void action_unshow_desktop(union ActionData *data);
 /* Client */
 void action_vibrate(union ActionData *data);
+/* Client */
+void action_flash(union ActionData *data);
 
 #endif