systray: Sort icons in the correct order when an icon is empty and order is right2left
This commit is contained in:
parent
39e67df44d
commit
7ea0dc241c
1 changed files with 2 additions and 2 deletions
|
@ -342,9 +342,9 @@ static gint compare_traywindows(gconstpointer a, gconstpointer b)
|
||||||
const TrayWindow * traywin_b = (TrayWindow*)b;
|
const TrayWindow * traywin_b = (TrayWindow*)b;
|
||||||
|
|
||||||
if (traywin_a->empty && !traywin_b->empty)
|
if (traywin_a->empty && !traywin_b->empty)
|
||||||
return 1;
|
return 1 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 1);
|
||||||
if (!traywin_a->empty && traywin_b->empty)
|
if (!traywin_a->empty && traywin_b->empty)
|
||||||
return -1;
|
return -1 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 1);
|
||||||
|
|
||||||
if (systray.sort == SYSTRAY_SORT_ASCENDING ||
|
if (systray.sort == SYSTRAY_SORT_ASCENDING ||
|
||||||
systray.sort == SYSTRAY_SORT_DESCENDING) {
|
systray.sort == SYSTRAY_SORT_DESCENDING) {
|
||||||
|
|
Loading…
Reference in a new issue