fixed : update tooltip when title change (downloading file) git-svn-id: http://tint2.googlecode.com/svn/trunk@352 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
3 files changed,
5 insertions(+),
1 deletions(-)
M
src/tint.c
→
src/tint.c
@@ -494,6 +494,10 @@
// 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
M
src/tooltip/tooltip.c
→
src/tooltip/tooltip.c
@@ -33,7 +33,6 @@ // the next functions are helper functions for tooltip handling
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 = {
M
src/tooltip/tooltip.h
→
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