diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-12 14:14:57 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-11-12 14:14:57 +0000 |
| commit | 12ce7cba98a5142c27afa624dc988b2717f5eecd (patch) | |
| tree | 6cda0aac0df5ddc3902a39f518ec350dd24a3d03 /src/Fl_Window_hotspot.cxx | |
| parent | cd99974e5138f801c609143693606f55dc9f0c02 (diff) | |
Window position bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@86 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_hotspot.cxx')
| -rw-r--r-- | src/Fl_Window_hotspot.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Window_hotspot.cxx b/src/Fl_Window_hotspot.cxx index d76d6b1b4..36d1a459b 100644 --- a/src/Fl_Window_hotspot.cxx +++ b/src/Fl_Window_hotspot.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Window_hotspot.cxx,v 1.5 1998/11/08 14:36:55 mike Exp $" +// "$Id: Fl_Window_hotspot.cxx,v 1.6 1998/11/12 14:14:56 mike Exp $" // // Common hotspot routines for the Fast Light Tool Kit (FLTK). // @@ -30,9 +30,11 @@ #include <FL/win32.H> #endif -void Fl_Window::hotspot(int X, int Y, int offscreen) { +void Fl_Window::hotspot(int X, int Y, int /*offscreen*/) { int mx,my; Fl::get_mouse(mx,my); X = mx-X; Y = my-Y; +#if 0 + // Both the WIN32 and X versions do this to all windows all the time... if (!offscreen) { #ifdef WIN32 //These will be used by reference, so we must passed different variables @@ -60,6 +62,7 @@ void Fl_Window::hotspot(int X, int Y, int offscreen) { if (Y < 0) Y = 0; #endif } +#endif position(X,Y); } @@ -74,5 +77,5 @@ void Fl_Window::hotspot(const Fl_Widget *o, int offscreen) { } // -// End of "$Id: Fl_Window_hotspot.cxx,v 1.5 1998/11/08 14:36:55 mike Exp $". +// End of "$Id: Fl_Window_hotspot.cxx,v 1.6 1998/11/12 14:14:56 mike Exp $". // |
