panel_config = calloc(1, sizeof(Panel));
panel_config->g_task.alpha = 100;
panel_config->g_task.alpha_active = 100;
- systray.sort = 1;
+ systray.sort = 3;
// window manager's menu default value == false
wm_menu = wm_menu_open = 0;
systray.sort = -1;
else if (strcmp(value, "asc") == 0)
systray.sort = 1;
- else
- systray.sort = 0;
+ else if (strcmp(value, "left2right") == 0)
+ systray.sort = 2;
+ else if (strcmp(value, "right2left") == 0)
+ systray.sort = 3;
}
/* Tooltip */
traywin = g_new0(TrayWindow, 1);
traywin->id = id;
- if (systray.sort == 0)
+ if (systray.sort == 3)
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
systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows);
systray.area.resize = 1;