g_tooltip.current_state = TOOLTIP_ABOUT_TO_SHOW;
g_tooltip.task = task;
struct timeval t = g_tooltip.show_timeout.it_value;
- if (t.tv_sec == 0 && t.tv_usec == 0)
+ if (t.tv_sec == 0 && t.tv_usec == 0) {
+ alarm(0);
tooltip_show();
+ }
else
setitimer(ITIMER_REAL, &g_tooltip.show_timeout, 0);
}
if (g_tooltip.mapped) {
g_tooltip.current_state = TOOLTIP_ABOUT_TO_HIDE;
struct timeval t = g_tooltip.hide_timeout.it_value;
- if (t.tv_sec == 0 && t.tv_usec == 0)
+ if (t.tv_sec == 0 && t.tv_usec == 0) {
tooltip_hide();
+ alarm(0);
+ }
else
setitimer(ITIMER_REAL, &g_tooltip.hide_timeout, 0);
}