From 1b0a66dcfff539fe973280f94d4e97f4591c64f8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 1 Sep 2003 02:57:53 +0000 Subject: add flash action --- openbox/action.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openbox/action.c') diff --git a/openbox/action.c b/openbox/action.c index 6e750d6f..00e87b24 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -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); +} -- cgit v1.2.3