Workaround for empty systray icon in Google Chrome (misbehaving) - fix resize

This commit is contained in:
o9000 2015-05-13 22:58:58 +02:00
parent b7dbb919a9
commit a4894b8257

View file

@ -148,7 +148,7 @@ int resize_systray(void *obj)
sysbar->icon_size = systray_max_icon_size;
count = 0;
for (l = systray.list_icons; l ; l = l->next) {
if (((TrayWindow*)l->data)->hide || ((TrayWindow*)l->data)->empty)
if (((TrayWindow*)l->data)->hide)
continue;
count++;
}
@ -558,7 +558,7 @@ void remove_icon(TrayWindow *traywin)
int count = 0;
GSList *l;
for (l = systray.list_icons; l; l = l->next) {
if (((TrayWindow*)l->data)->hide || ((TrayWindow*)l->data)->empty)
if (((TrayWindow*)l->data)->hide)
continue;
count++;
}