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:
committed by
Carlos R. Mafra
parent
8e0ef4766d
commit
8f63bdafcd
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user