1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 08:26:45 +02:00

move window blink/beep to a function

This commit is contained in:
Jfreegman
2013-11-19 02:31:22 -05:00
parent 83458c64ec
commit b16ff16abc
4 changed files with 17 additions and 14 deletions

View File

@ -106,3 +106,10 @@ bool timed_out(uint64_t timestamp, uint64_t curtime, uint64_t timeout)
{
return timestamp + timeout <= curtime;
}
/* Beeps and makes window tab blink */
void alert_window(ToxWindow *self)
{
self->blink = true;
beep();
}