fixed issue 176

git-svn-id: http://tint2.googlecode.com/svn/trunk@285 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2009-12-16 09:04:50 +00:00
parent 7bf93151f9
commit b42e067629
4 changed files with 16 additions and 11 deletions

View File

@@ -102,6 +102,7 @@ void tooltip_trigger_show(Area* area, Panel* p, int x_root, int y_root)
}
else if (!g_tooltip.mapped) {
start_show_timeout();
//printf("!g_tooltip.mapped %d %d\n", x, y);
}
}
@@ -272,10 +273,12 @@ void start_show_timeout()
{
reset_timer(g_tooltip.hide_timer_id, 0, 0, 0, 0);
struct timespec t = g_tooltip.show_timeout;
if (t.tv_sec == 0 && t.tv_nsec == 0)
if (t.tv_sec == 0 && t.tv_nsec == 0) {
tooltip_show();
else
}
else {
reset_timer(g_tooltip.show_timer_id, t.tv_sec, t.tv_nsec, 0, 0);
}
}