Autohide-show panel when task becomes urgent git-svn-id: http://tint2.googlecode.com/svn/trunk@730 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
1 files changed,
8 insertions(+),
3 deletions(-)
jump to
M
src/taskbar/task.c
→
src/taskbar/task.c
@@ -115,12 +115,13 @@ *key = new_tsk.win;
g_hash_table_insert(win_to_task_table, key, task_group); set_task_state(new_tsk2, new_tsk.current_state); - if (window_is_urgent(win)) - add_urgent(new_tsk2); - if (panel_mode == MULTI_DESKTOP) { Panel *panel = new_tsk2->area.panel; panel->area.resize = 1; + } + + if (window_is_urgent(win)) { + add_urgent(new_tsk2); } return new_tsk2;@@ -595,6 +596,10 @@ urgent_list = g_slist_prepend(urgent_list, tsk);
if (urgent_timeout == 0) urgent_timeout = add_timeout(10, 1000, blink_urgent, 0); + + Panel *panel = tsk->area.panel; + if (panel->is_hidden) + autohide_show(panel); }