diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2006-06-14 10:48:36 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2006-06-14 10:48:36 +0000 |
| commit | c468a521b012b87914030a45f0fdced1be87de67 (patch) | |
| tree | e345bd056a685bbf65808e56dc3155a4d2d8abb0 /src/Fl_x.cxx | |
| parent | bc03e9b1a96b8cfef8ba5fb153845372f4aea69c (diff) | |
STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus.
Of course, poping up a tooltip window does *not* disable further tooltips... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index d7c909e32..b33c8bbb9 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -38,6 +38,7 @@ # include <FL/Fl.H> # include <FL/x.H> # include <FL/Fl_Window.H> +# include <FL/Fl_Tooltip.H> # include <stdio.h> # include <stdlib.h> # include "flstring.h" @@ -1329,6 +1330,7 @@ void Fl_Window::show() { } else { labeltype(FL_NO_LABEL); } + Fl_Tooltip::exit_(this); if (!shown()) { fl_open_display(); if (can_boxcheat(box())) fl_background_pixel = int(fl_xpixel(color())); |
