fixed : update tooltip when title change (downloading file)

git-svn-id: http://tint2.googlecode.com/svn/trunk@352 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77 2010-01-15 15:31:07 +00:00
parent 0ff3c67ab3
commit 221f2875b3
3 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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 = {

View file

@ -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