// 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
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 = {
void tooltip_update();
void tooltip_trigger_hide();
void tooltip_hide(void* /*arg*/);
+void tooltip_copy_text(Area* area);
#endif // TOOLTIP_H