From a4894b8257ca6b8baecc3370f5d5288f8683daad Mon Sep 17 00:00:00 2001 From: o9000 Date: Wed, 13 May 2015 22:58:58 +0200 Subject: [PATCH] Workaround for empty systray icon in Google Chrome (misbehaving) - fix resize --- src/systray/systraybar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index d686978..0609546 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -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++; }