summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_win32.cxx2
-rw-r--r--src/Fl_x.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 5628dfd9d..43217d3a0 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1036,7 +1036,7 @@ int Fl_X::fake_X_wm(const Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by)
//Proceed to positioning the window fully inside the screen, if possible
//Make border's lower right corner visible
int scr_x, scr_y, scr_w, scr_h;
- Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h);
+ Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h, X, Y);
if (scr_x+scr_w < X+W) X = scr_x+scr_w - W;
if (scr_y+scr_h < Y+H) Y = scr_y+scr_h - H;
//Make border's upper left corner visible
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 39c5dca6b..c7444fc41 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -1052,7 +1052,7 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap)
// force the window to be on-screen. Usually the X window manager
// does this, but a few don't, so we do it here for consistency:
int scr_x, scr_y, scr_w, scr_h;
- Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h);
+ Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h, X, Y);
if (win->border()) {
// ensure border is on screen: