summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 18:38:04 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 18:38:04 +0200
commit29a56f87e3bd919a581e3ce001b3a98753684aac (patch)
tree366061c228dde23936ae67fee4fd0b71cf40df20
parent6ac305a50804498b8c7ab00d23d2d4f3164b84fa (diff)
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").
-rw-r--r--src/Fl_Tooltip.cxx1
1 files changed, 1 insertions, 0 deletions
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()) {