all repos — tint2 @ 7ea0dc241c7cd86ef28c2ea7edbb8eb81c162e5a

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

systray: Sort icons in the correct order when an icon is empty and order is right2left
o9000 o9000
commit

7ea0dc241c7cd86ef28c2ea7edbb8eb81c162e5a

parent

39e67df44d439baef61dfe003040ed84b8a1c8f9

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -342,9 +342,9 @@ const TrayWindow * traywin_a = (TrayWindow*)a;

const TrayWindow * traywin_b = (TrayWindow*)b; 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) - return -1; + return -1 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 1); if (systray.sort == SYSTRAY_SORT_ASCENDING || systray.sort == SYSTRAY_SORT_DESCENDING) {