Workaround for empty systray icon in Google Chrome (misbehaving) - fix sorting
This commit is contained in:
parent
3ab42f9b72
commit
8795f50bb8
1 changed files with 2 additions and 3 deletions
|
@ -495,10 +495,9 @@ gboolean add_icon(Window id)
|
||||||
|
|
||||||
if (systray.sort == 3)
|
if (systray.sort == 3)
|
||||||
systray.list_icons = g_slist_prepend(systray.list_icons, traywin);
|
systray.list_icons = g_slist_prepend(systray.list_icons, traywin);
|
||||||
else if (systray.sort == 2)
|
|
||||||
systray.list_icons = g_slist_append(systray.list_icons, traywin);
|
|
||||||
else
|
else
|
||||||
systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows);
|
systray.list_icons = g_slist_append(systray.list_icons, traywin);
|
||||||
|
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));
|
//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) {
|
if (FORCE_COMPOSITED_RENDERING || server.real_transparency || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0) {
|
||||||
|
|
Loading…
Reference in a new issue