Sort tasks on taskbar: config + sort by title or center (disabled, work in progress) - issue 478

git-svn-id: http://tint2.googlecode.com/svn/trunk@743 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-03-28 22:38:57 +00:00
committed by mrovi9000@gmail.com
parent 67d5bfcfce
commit e539c6536f
8 changed files with 293 additions and 38 deletions

View File

@@ -184,7 +184,10 @@ int get_title(Task *tsk)
Panel *panel = tsk->area.panel;
char *title, *name;
if (!panel->g_task.text && !panel->g_task.tooltip_enabled) return 0;
if (!panel->g_task.text &&
!panel->g_task.tooltip_enabled &&
taskbar_sort_method != TASKBAR_SORT_TITLE)
return 0;
name = server_get_property (tsk->win, server.atom._NET_WM_VISIBLE_NAME, server.atom.UTF8_STRING, 0);
if (!name || !strlen(name)) {