Tentative to sort tasks on taskbar (disabled) - issue 478

git-svn-id: http://tint2.googlecode.com/svn/trunk@738 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000
2015-03-22 16:07:04 +00:00
committed by mrovi9000@gmail.com
parent 5faf063f96
commit e113080a0e
7 changed files with 86 additions and 18 deletions

View File

@@ -63,6 +63,7 @@ Task *add_task (Window win)
new_tsk.desktop = window_get_desktop (win);
new_tsk.area.panel = &panel1[monitor];
new_tsk.current_state = window_is_iconified(win) ? TASK_ICONIFIED : TASK_NORMAL;
window_get_position(win, &new_tsk.win_x, &new_tsk.win_y);
// allocate only one title and one icon
// even with task_on_all_desktop and with task_on_all_panel
@@ -115,6 +116,8 @@ Task *add_task (Window win)
g_hash_table_insert(win_to_task_table, key, task_group);
set_task_state(new_tsk2, new_tsk.current_state);
sort_tasks(tskbar);
if (panel_mode == MULTI_DESKTOP) {
Panel *panel = new_tsk2->area.panel;
panel->area.resize = 1;