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:
parent
0ff3c67ab3
commit
221f2875b3
3 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue