]> Dogcows Code - chaz/tint2/blobdiff - src/tooltip/tooltip.c
*fix* tooltip hide fixed
[chaz/tint2] / src / tooltip / tooltip.c
index 17b45580a106e04157381dc766cbdf9b6ef459a3..85ab223f2fa11f70277ef0c1c31151447ce42dd9 100644 (file)
@@ -231,6 +231,7 @@ void tooltip_trigger_hide(Tooltip* tooltip)
        if (g_tooltip.mapped) {
                g_tooltip.current_state = TOOLTIP_ABOUT_TO_HIDE;
                struct timeval t = g_tooltip.hide_timeout.it_value;
+               g_tooltip.task = 0;
                if (t.tv_sec == 0 && t.tv_usec == 0) {
                        tooltip_hide();
                        alarm(0);
@@ -251,5 +252,4 @@ void tooltip_hide()
                g_tooltip.mapped = False;
                XUnmapWindow(server.dsp, g_tooltip.window);
        }
-       g_tooltip.task = 0;
 }
This page took 0.020445 seconds and 4 git commands to generate.