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:
Albrecht Schlosser
2008-10-11 12:33:28 +00:00
parent 5abbe21b52
commit 7c977f76a0
+1 -1
View File
@@ -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);