mirror of
https://github.com/fltk/fltk.git
synced 2026-05-25 09:17:49 +08:00
Fl_Tooltip could pop up a wrong tooltip, when there had been no tooltip
displayed before, and the current belowmouse() widget didn't have a tooltip. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6409 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ void Fl_Tooltip::exit_(Fl_Widget *w) {
|
||||
printf(" widget=%p, window=%p\n", widget_, window);
|
||||
#endif // DEBUG
|
||||
|
||||
if (!widget_ || w == window) return;
|
||||
if (!widget_ || (w && w == window)) return;
|
||||
widget_ = 0;
|
||||
Fl::remove_timeout(tooltip_timeout);
|
||||
Fl::remove_timeout(recent_timeout);
|
||||
|
||||
Reference in New Issue
Block a user