*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:
Andreas.Fink85
2010-01-06 19:30:55 +00:00
parent adb784a859
commit 349cb2f023
3 changed files with 31 additions and 12 deletions

View File

@@ -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;
}
}
}
}
}
}