X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=db6346763a042114f3b93473e5a5678f2cf4b467;hb=93466c3280ef80f1b8435d224e897892115f59cb;hp=c23f115aa6c6333ba63436d2da2e5848d49addaa;hpb=501a421b337b6e08b58904b1c008bd05dbbf954b;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index c23f115..db63467 100644 --- a/src/tint.c +++ b/src/tint.c @@ -556,8 +556,8 @@ void event_property_notify (XEvent *e) if (tsk->win == tsk2->win && tsk != tsk2) { tsk2->icon_width = tsk->icon_width; tsk2->icon_height = tsk->icon_height; - tsk2->icon_data = tsk->icon_data; - tsk2->icon_data_active = tsk->icon_data_active; + tsk2->icon = tsk->icon; + tsk2->icon_active = tsk->icon_active; tsk2->area.redraw = 1; } } @@ -581,6 +581,15 @@ void event_property_notify (XEvent *e) panel_refresh = 1; } } + else if (at == server.atom.WM_HINTS) { + XWMHints* wmhints = XGetWMHints(server.dsp, win); + if (wmhints && wmhints->flags & XUrgencyHint) { + task_urgent = tsk; + tick_urgent = 0; + time_precision = 1; + } + XFree(wmhints); + } if (!server.got_root_win) server.root_win = RootWindow (server.dsp, server.screen); }