stop asynchronous tooltip when task removed/changed git-svn-id: http://tint2.googlecode.com/svn/trunk@217 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
1 files changed,
12 insertions(+),
0 deletions(-)
jump to
M
src/taskbar/task.c
→
src/taskbar/task.c
@@ -100,6 +100,12 @@
Window win = tsk->win; int desktop = tsk->desktop; + if (g_tooltip.task == tsk) { + tooltip_hide(); + alarm(0); + g_tooltip.task = 0; + } + // free title and icon just for the first task // even with task_on_all_desktop and with task_on_all_panel //printf("remove_task %s %d\n", tsk->title, tsk->desktop);@@ -150,6 +156,12 @@ Panel *panel = tsk->area.panel;
char *title, *name; if (!panel->g_task.text && !g_tooltip.enabled) return; + + if (g_tooltip.task == tsk) { + tooltip_hide(); + alarm(0); + g_tooltip.task = 0; + } name = server_get_property (tsk->win, server.atom._NET_WM_VISIBLE_NAME, server.atom.UTF8_STRING, 0); if (!name || !strlen(name)) {