add flash action
Dana Jansens danakj@orodu.net
2 files changed,
13 insertions(+),
0 deletions(-)
M
openbox/action.c
→
openbox/action.c
@@ -705,6 +705,11 @@ action_vibrate,
NULL }, { + "flash", + action_flash, + NULL + }, + { NULL, NULL, NULL@@ -1268,3 +1273,9 @@ x += 1;
} } } + +void action_flash(union ActionData *data) +{ + if (!data->client.any.c) return; + frame_flash(data->client.any.c->frame); +}
M
openbox/action.h
→
openbox/action.h
@@ -246,5 +246,7 @@ /* Any */
void action_unshow_desktop(union ActionData *data); /* Client */ void action_vibrate(union ActionData *data); +/* Client */ +void action_flash(union ActionData *data); #endif