summaryrefslogtreecommitdiff
path: root/src/Fl_mac.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-06-14 10:48:36 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-06-14 10:48:36 +0000
commitc468a521b012b87914030a45f0fdced1be87de67 (patch)
treee345bd056a685bbf65808e56dc3155a4d2d8abb0 /src/Fl_mac.cxx
parentbc03e9b1a96b8cfef8ba5fb153845372f4aea69c (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_mac.cxx')
-rw-r--r--src/Fl_mac.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx
index 0a667a461..a943fd46f 100644
--- a/src/Fl_mac.cxx
+++ b/src/Fl_mac.cxx
@@ -56,6 +56,7 @@ extern "C" {
#include <FL/x.H>
#include <FL/Fl_Tooltip.H>
#include <FL/Fl_Window.H>
+#include <FL/Fl_Tooltip.H>
#include <FL/Fl_Sys_Menu_Bar.H>
#include <stdio.h>
#include <stdlib.h>
@@ -1972,6 +1973,7 @@ void Fl_Window::show() {
} else {
labeltype(FL_NO_LABEL);
}
+ Fl_Tooltip::exit_(this);
if (!shown() || !i) {
Fl_X::make(this);
} else {