all repos — tint2 @ 5bd4bcf727b5c0479c06f854342604ece28c85c3

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Fix issue 343: Double system tray icons

git-svn-id: http://tint2.googlecode.com/svn/trunk@685 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

5bd4bcf727b5c0479c06f854342604ece28c85c3

parent

89c833806790fa8fad0e4ac0bbc27cfb93deaaeb

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/systray/systraybar.csrc/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;