summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/action.c11
-rw-r--r--openbox/action.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 6e750d6f..00e87b24 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -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);
+}
diff --git a/openbox/action.h b/openbox/action.h
index db618b36..116bddc0 100644
--- a/openbox/action.h
+++ b/openbox/action.h
@@ -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