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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user