Workaround for empty systray icon in Google Chrome (misbehaving) - fix sorting
o9000 o9000
1 files changed,
2 insertions(+),
3 deletions(-)
jump to
M
src/systray/systraybar.c
→
src/systray/systraybar.c
@@ -495,10 +495,9 @@ show(&systray.area);
if (systray.sort == 3) systray.list_icons = g_slist_prepend(systray.list_icons, traywin); - else if (systray.sort == 2) + else systray.list_icons = g_slist_append(systray.list_icons, traywin); - else - systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows); + systray.list_icons = g_slist_sort(systray.list_icons, compare_traywindows); //printf("add_icon id %lx, %d\n", id, g_slist_length(systray.list_icons)); if (FORCE_COMPOSITED_RENDERING || server.real_transparency || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0) {