add flash action
This commit is contained in:
parent
0621e22932
commit
1b0a66dcff
2 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue