FLTK logo

Re: [fltk/fltk] 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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Tooltip causing Window to "unfocus" on Windows (#261) Albrecht Schlosser Aug 27, 2021  
 

@fire-eggs and @erco77 Thanks for looking into this, I'd been distracted by other work.

I seem to have made some progress. Commenting out this line:
https://github.com/fltk/fltk/blob/6ac305a50804498b8c7ab00d23d2d4f3164b84fa/src/Fl_Tooltip.cxx#L303
seems to "fix" the issue.

I'm just testing and making educated guesses so far, but this line seems to be unnecessary at a first glance. If you look close at what happens when you enter a button - at least when another tooltip is already displayed - you'll notice that the tooltip gets displayed twice with a very short delay. To see that better, move the mouse upwards from, say, button2 to button1. And to see it even better, you can increase the hoverdelay from 0.2 to (e.g.) 0.8 seconds. Here's my working patch with test and debug statements:
tooltip.diff.txt

This is not yet a final solution, it's just a little progress I made. I'm also attaching my test program here: issue-261.cxx.txt

I'd be interested in any insights and test results. Are there any negative side effects?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]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'.