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:
@@ -494,6 +494,10 @@ void event_property_notify (XEvent *e)
|
|||||||
// Window title changed
|
// Window title changed
|
||||||
if (at == server.atom._NET_WM_VISIBLE_NAME || at == server.atom._NET_WM_NAME || at == server.atom.WM_NAME) {
|
if (at == server.atom._NET_WM_VISIBLE_NAME || at == server.atom._NET_WM_NAME || at == server.atom.WM_NAME) {
|
||||||
get_title(tsk);
|
get_title(tsk);
|
||||||
|
if (g_tooltip.mapped && (g_tooltip.area == (Area*)tsk)) {
|
||||||
|
tooltip_copy_text((Area*)tsk);
|
||||||
|
tooltip_update();
|
||||||
|
}
|
||||||
panel_refresh = 1;
|
panel_refresh = 1;
|
||||||
}
|
}
|
||||||
// Demand attention
|
// Demand attention
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ static int x, y, width, height;
|
|||||||
void start_show_timeout();
|
void start_show_timeout();
|
||||||
void start_hide_timeout();
|
void start_hide_timeout();
|
||||||
void stop_tooltip_timeout();
|
void stop_tooltip_timeout();
|
||||||
void tooltip_copy_text(Area* area);
|
|
||||||
|
|
||||||
// give the tooltip some reasonable default values
|
// give the tooltip some reasonable default values
|
||||||
Tooltip g_tooltip = {
|
Tooltip g_tooltip = {
|
||||||
|
|||||||
@@ -49,5 +49,6 @@ void tooltip_show(void* /*arg*/);
|
|||||||
void tooltip_update();
|
void tooltip_update();
|
||||||
void tooltip_trigger_hide();
|
void tooltip_trigger_hide();
|
||||||
void tooltip_hide(void* /*arg*/);
|
void tooltip_hide(void* /*arg*/);
|
||||||
|
void tooltip_copy_text(Area* area);
|
||||||
|
|
||||||
#endif // TOOLTIP_H
|
#endif // TOOLTIP_H
|
||||||
|
|||||||
Reference in New Issue
Block a user