Fix issue 343: Double system tray icons git-svn-id: http://tint2.googlecode.com/svn/trunk@685 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
src/systray/systraybar.c
→
src/systray/systraybar.c
@@ -359,6 +359,12 @@ XErrorHandler old;
Panel *panel = systray.area.panel; int hide = 0; + GSList *l; + for (l = systray.list_icons; l; l = l->next) { + if (((TrayWindow*)l->data)->tray_id == id) + return FALSE; + } + error = FALSE; XWindowAttributes attr; if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE;