From 0ab53b210215f6de008c21fbe3b772ad4ecde4b9 Mon Sep 17 00:00:00 2001 From: Thierry Lorthiois Date: Fri, 15 Jan 2010 15:31:07 +0000 Subject: [PATCH] fixed : update tooltip when title change (downloading file) --- src/tint.c | 4 ++++ src/tooltip/tooltip.c | 1 - src/tooltip/tooltip.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tint.c b/src/tint.c index 0004f30..a606546 100644 --- a/src/tint.c +++ b/src/tint.c @@ -494,6 +494,10 @@ void event_property_notify (XEvent *e) // Window title changed if (at == server.atom._NET_WM_VISIBLE_NAME || at == server.atom._NET_WM_NAME || at == server.atom.WM_NAME) { get_title(tsk); + if (g_tooltip.mapped && (g_tooltip.area == (Area*)tsk)) { + tooltip_copy_text((Area*)tsk); + tooltip_update(); + } panel_refresh = 1; } // Demand attention diff --git a/src/tooltip/tooltip.c b/src/tooltip/tooltip.c index a2277b3..f94e08b 100644 --- a/src/tooltip/tooltip.c +++ b/src/tooltip/tooltip.c @@ -33,7 +33,6 @@ static int x, y, width, height; void start_show_timeout(); void start_hide_timeout(); void stop_tooltip_timeout(); -void tooltip_copy_text(Area* area); // give the tooltip some reasonable default values Tooltip g_tooltip = { diff --git a/src/tooltip/tooltip.h b/src/tooltip/tooltip.h index 4ae2989..1b1ad67 100644 --- a/src/tooltip/tooltip.h +++ b/src/tooltip/tooltip.h @@ -49,5 +49,6 @@ void tooltip_show(void* /*arg*/); void tooltip_update(); void tooltip_trigger_hide(); void tooltip_hide(void* /*arg*/); +void tooltip_copy_text(Area* area); #endif // TOOLTIP_H -- 2.44.0