]> Dogcows Code - chaz/openbox/commitdiff
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 6e750d6f54f059e166ea519c5feb4b04a55a327e..00e87b24f5ab0f9ad2aa5a79460c67e1032fd53f 100644 (file)
@@ -704,6 +704,11 @@ ActionString actionstrings[] =
         action_vibrate,
         NULL
     },
+    {
+        "flash",
+        action_flash,
+        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 db618b36c997cccee8a17e4d5ab5063b292f2e8d..116bddc0f6a5e793704a4ac444ae34844a86b803 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
This page took 0.027586 seconds and 4 git commands to generate.