]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
lower cpu use with icon. replace HUE by ALPHA on icon (see task_icon_asb).
[chaz/tint2] / src / tint.c
index c23f115aa6c6333ba63436d2da2e5848d49addaa..db6346763a042114f3b93473e5a5678f2cf4b467 100644 (file)
@@ -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);
        }
This page took 0.020832 seconds and 4 git commands to generate.