Fix issue 343: Double system tray icons
git-svn-id: http://tint2.googlecode.com/svn/trunk@685 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
committed by
mrovi9000@gmail.com
parent
89c8338067
commit
5bd4bcf727
@@ -359,6 +359,12 @@ gboolean add_icon(Window id)
|
|||||||
Panel *panel = systray.area.panel;
|
Panel *panel = systray.area.panel;
|
||||||
int hide = 0;
|
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;
|
error = FALSE;
|
||||||
XWindowAttributes attr;
|
XWindowAttributes attr;
|
||||||
if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE;
|
if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user