all repos — tint2 @ 7ab7dd2393acceb8aec13dcb8aa289ff06b99f95

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

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
commit

7ab7dd2393acceb8aec13dcb8aa289ff06b99f95

parent

1d9990b400ec1917fcc2a288db250878d4d8c876

1 files changed, 12 insertions(+), 0 deletions(-)

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