summaryrefslogtreecommitdiff
path: root/src/Fl_Tooltip.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2006-08-29 10:04:02 +0000
committerMatthias Melcher <fltk@matthiasm.com>2006-08-29 10:04:02 +0000
commit00ec9da8f5cf0f37f3c64e0a45b4046f86153765 (patch)
tree2048393d9d934ae53e79dbc1797106836d10ccef /src/Fl_Tooltip.cxx
parentba8bb3d8c278a70895e3b138fcfe9cbd91d5cbd0 (diff)
- removed more inconsistencies between fl_draw and fl_measure (STR #1408)
- made the Tooltip hide code a little bit smarter - Added subwindow test case to Fl_Tabs git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tooltip.cxx')
-rw-r--r--src/Fl_Tooltip.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index 2834b3cec..acba0be7d 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -194,7 +194,7 @@ Fl_Tooltip::exit_(Fl_Widget *w) {
widget_ = 0;
Fl::remove_timeout(tooltip_timeout);
Fl::remove_timeout(recent_timeout);
- if (window) window->hide();
+ if (window && window->visible()) window->hide();
if (recent_tooltip) {
if (Fl::event_state() & FL_BUTTONS) recent_tooltip = 0;
else Fl::add_timeout(Fl_Tooltip::hoverdelay(), recent_timeout);
@@ -233,11 +233,11 @@ Fl_Tooltip::enter_area(Fl_Widget* wid, int x,int y,int w,int h, const char* t)
#ifdef WIN32
// possible fix for the Windows titlebar, it seems to want the
// window to be destroyed, moving it messes up the parenting:
- if (window) window->hide();
+ if (window && window->visible()) window->hide();
#endif // WIN32
tooltip_timeout(0);
} else {
- if (window) window->hide();
+ if (window && window->visible()) window->hide();
Fl::add_timeout(Fl_Tooltip::delay(), tooltip_timeout);
}