When a mouse button is clicked while hovering over a tool, Windows hides the tooltip and suppresses it from reappearing until the cursor leaves the tool and re-enters it. Previously Wine would restart ID_TIMERSHOW on subsequent mouse moves over the same tool, causing the tooltip to pop up again immediately. Fix this by introducing a bClickCancelled flag that is set whenever any mouse button is pressed over an active tool, and cleared only when the cursor moves to a different tool. Also kill ID_TIMERSHOW in TOOLTIPS_Hide to prevent a pending show timer from firing after the tooltip is dismissed. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=59520 Signed-off-by: Ivan Georgiev <ivanresen2006@gmail.com> -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10338