all repos — tint2 @ 4c16f97e735bd7c9655461f510bd8ce05d078dc6

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Autohide-show panel when task becomes urgent

git-svn-id: http://tint2.googlecode.com/svn/trunk@730 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

4c16f97e735bd7c9655461f510bd8ce05d078dc6

parent

b8a47667734a8c61d89a0af7097966e1702b372d

1 files changed, 8 insertions(+), 3 deletions(-)

jump to
M src/taskbar/task.csrc/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); }