Systray: do not move empty icons to the side, as it breaks GTK2 StatusIcon blinking (issue #515)
This commit is contained in:
parent
ed24d0bd4c
commit
84f9f6d0cd
1 changed files with 3 additions and 0 deletions
|
@ -419,10 +419,13 @@ static gint compare_traywindows(gconstpointer a, gconstpointer b)
|
||||||
const TrayWindow * traywin_a = (TrayWindow*)a;
|
const TrayWindow * traywin_a = (TrayWindow*)a;
|
||||||
const TrayWindow * traywin_b = (TrayWindow*)b;
|
const TrayWindow * traywin_b = (TrayWindow*)b;
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// This breaks pygtk2 StatusIcon with blinking activated
|
||||||
if (traywin_a->empty && !traywin_b->empty)
|
if (traywin_a->empty && !traywin_b->empty)
|
||||||
return 1 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 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 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 1);
|
return -1 * (systray.sort == SYSTRAY_SORT_RIGHT2LEFT ? -1 : 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
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