From 29a56f87e3bd919a581e3ce001b3a98753684aac Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 27 Aug 2021 18:38:04 +0200 Subject: [PATCH] Fix "Tooltip causing Window to 'unfocus' on Windows" (#261) This fixes a regression introduced in FLTK 1.4 in commit 3bc5be71a39bf2ed9d9937a4f60df61dd6d3a2b4 ("Rewrite Fl_Tooltip.cxx for the driver model"). --- src/Fl_Tooltip.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index 220e4603d..2d2eb2021 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -301,6 +301,7 @@ void Fl_Tooltip::enter_area(Fl_Widget* wid, int x,int y,int w,int h, const char* Fl::remove_timeout(tooltip_hide_timeout); } Fl::add_timeout(Fl_Tooltip::hoverdelay(), tooltip_timeout); + } else if (Fl_Tooltip::delay() < .1) { // possible fix for the Windows titlebar, it seems to want the // window to be destroyed, moving it messes up the parenting: if (Fl::system_driver()->use_recent_tooltip_fix() && window && window->visible()) {