summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 13:46:56 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-10-11 13:46:56 +0000
commitfe8518f37c9c0638e7f63ca4aa91e65c1c49ccc4 (patch)
tree7d64bbb5ce6ffc24fb62a136904774ac8b3ad15e
parent6e39ebd8a0fc02ffc2b4b343ef95aa11d89012d5 (diff)
Fix bug #621740 - tooltips stay up in WIN32 when USE_TRACK_MOUSE is not
defined. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_win32.cxx10
2 files changed, 9 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index 570b265fb..9f0da9d93 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
CHANGES IN FLTK 1.1.1
+ - The WIN32 port needed to handle WM_MOUSELEAVE events
+ in order to avoid problems with tooltips.
- Fl_PNM_Image didn't set the "alloc" flag for the data,
which could lead to a memory leak.
- fl_filename_match() was inconsistently doing case-
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 7a0d777e6..0579f0b1d 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_win32.cxx,v 1.33.2.37.2.37 2002/07/01 20:14:08 easysw Exp $"
+// "$Id: Fl_win32.cxx,v 1.33.2.37.2.38 2002/10/11 13:46:56 easysw Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
@@ -71,6 +71,10 @@
//#define USE_TRACK_MOUSE
+#if !defined(__GNUC__)
+# define USE_TRACK_MOUSE
+#endif // !__GNUC__
+
//
// WM_SYNCPAINT is an "undocumented" message, which is finally defined in
@@ -629,7 +633,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
case WM_MOUSELEAVE:
Fl::belowmouse(0);
-// Fl::handle(FL_LEAVE, window);
+ if (!window->parent()) Fl::handle(FL_LEAVE, window);
break;
case WM_SETFOCUS:
@@ -1179,5 +1183,5 @@ void Fl_Window::make_current() {
}
//
-// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.37 2002/07/01 20:14:08 easysw Exp $".
+// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.38 2002/10/11 13:46:56 easysw Exp $".
//