FLTK logo

[master] 29a56f8 - Fix "Tooltip causing Window to 'unfocus' on Windows" (#261)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 29a56f8 - Fix "Tooltip causing Window to 'unfocus' on Windows" (#261) "Albrecht Schlosser" Aug 27, 2021  
 
commit 29a56f87e3bd919a581e3ce001b3a98753684aac
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Fri Aug 27 18:38:04 2021 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Fri Aug 27 18:38:04 2021 +0200

    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 src/Fl_Tooltip.cxx src/Fl_Tooltip.cxx
index 220e460..2d2eb20 100644
--- src/Fl_Tooltip.cxx
+++ 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()) {
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.