*fix* only changed systray icons are rendered
git-svn-id: http://tint2.googlecode.com/svn/trunk@323 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
15
src/tint.c
15
src/tint.c
@@ -849,9 +849,18 @@ int main (int argc, char *argv[])
|
||||
break;
|
||||
|
||||
default:
|
||||
if (e.type == XDamageNotify+damage_event)
|
||||
// TODO: update only the damaged icon, not all of them
|
||||
systray.area.redraw = 1;
|
||||
if (e.type == XDamageNotify+damage_event) {
|
||||
TrayWindow *traywin;
|
||||
GSList *l;
|
||||
XDamageNotifyEvent* de = (XDamageNotifyEvent*)&e;
|
||||
for (l = systray.list_icons; l ; l = l->next) {
|
||||
traywin = (TrayWindow*)l->data;
|
||||
if ( traywin->id == de->drawable ) {
|
||||
systray_render_icon(traywin);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user