DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2650
Version: 1.3-feature
Attached file "tooltip.patch"...
Link: http://www.fltk.org/str.php?L2650
Version: 1.3-feature
Index: src/Fl_Tooltip.cxx
===================================================================
--- src/Fl_Tooltip.cxx (revision 8592)
+++ src/Fl_Tooltip.cxx (working copy)
@@ -167,7 +167,13 @@
printf("Fl_Tooltip::enter_(w=%p)\n", w);
printf(" window=%p\n", window);
#endif // DEBUG
-
+ if (w && w->as_window() && ((Fl_Window*)w)->tooltip_window()) {
+ // Fix STR #2650: if there's no better place for a tooltip window, don't
move it.
+ int oldx = w->x();
+ int oldy = w->y();
+ ((Fl_TooltipBox*)w)->layout();
+ if (w->x() == oldx && w->y() == oldy) return;
+ }
// find the enclosing group with a tooltip:
Fl_Widget* tw = w;
for (;;) {
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev