all repos — tint2 @ 221f2875b3926d8d618db426a91e9efff067eca5

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed : update tooltip when title change (downloading file)

git-svn-id: http://tint2.googlecode.com/svn/trunk@352 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

221f2875b3926d8d618db426a91e9efff067eca5

parent

0ff3c67ab326bfc908bf30bf53cf48d1c476405e

3 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/tint.csrc/tint.c

@@ -494,6 +494,10 @@

// 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
M src/tooltip/tooltip.csrc/tooltip/tooltip.c

@@ -33,7 +33,6 @@ // the next functions are helper functions for tooltip handling

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 = {
M src/tooltip/tooltip.hsrc/tooltip/tooltip.h

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