]> Dogcows Code - chaz/tint2/commitdiff
fixed : update tooltip when title change (downloading file)
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 15 Jan 2010 15:31:07 +0000 (15:31 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Fri, 15 Jan 2010 15:31:07 +0000 (15:31 +0000)
src/tint.c
src/tooltip/tooltip.c
src/tooltip/tooltip.h

index 0004f30ccb6770dfb812d67bcd5b6f05f5170edb..a6065465754f380e28a1dbe83c2f7c712fe9d7d8 100644 (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
index a2277b398fed3d023b1d262bb280114edd6f774a..f94e08b8d06d77cd6ed6519eced8638b0c9b894e 100644 (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 = {
index 4ae2989b281020221c8b643f56251766d6699e72..1b1ad677013e8adf7ebfb518a913725326e342fd 100644 (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
This page took 0.025084 seconds and 4 git commands to generate.