libacfutils
libacfutils copied to clipboard
widget.c: tooltip is flashing every 0.1s/1s
The tooltip is appearing only 0.1s every 1s Proposal In function tooltip_floop_cb line 551
if (last_mouse_x != mouse_x || last_mouse_y != mouse_y /*|| <-- removing tooltip_invalid() fix the issue
tooltip_invalid()*/) {
last_mouse_x = mouse_x;
last_mouse_y = mouse_y;
mouse_moved_time = now;
if (cur_tt != NULL)
destroy_cur_tt();
return (TOOLTIP_INTVAL);
}
The drawback is that the tooltip appears if there is an other window over, but according Laminar XPLMIsWindowInFront may return an incorrect value.
Thus, if you have a window at the front of the floating window layer (xplm_WindowLayerFloatingWindows), this will return true even if there is a modal window (in layer xplm_WindowLayerModal) above you. (Not to worry, though: in such a case, X-Plane will not pass clicks or keyboard input down to your layer until the window above stops “eating” the input.)