1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 21:38:00 +01:00

Periodic bouncing for XUrgencyHint

When a window has XUrgencyHint set, bounce the app icon periodically.
This commit is contained in:
Brad Jorsch
2010-09-16 17:05:13 -04:00
committed by Carlos R. Mafra
parent 8e0ef4766d
commit 8f63bdafcd
5 changed files with 67 additions and 3 deletions

View File

@@ -260,6 +260,7 @@ WApplication *wApplicationCreate(WWindow * wwin)
wapp->refcount = 1;
wapp->last_focused = NULL;
wapp->urgent_bounce_timer = NULL;
wapp->last_workspace = 0;
@@ -409,6 +410,10 @@ void wApplicationDestroy(WApplication * wapp)
if (wapp->refcount > 0)
return;
if (wapp->urgent_bounce_timer) {
WMDeleteTimerHandler(wapp->urgent_bounce_timer);
wapp->urgent_bounce_timer = NULL;
}
if (wapp->flags.bouncing) {
/* event.c:handleDestroyNotify forced this destroy
and thereby overlooked the bounce callback */