diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index ed97ab88a..1774c416b 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1293,9 +1293,11 @@ 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 + //Find screen that contains most of the window + //FIXME: this ought to be the "work area" instead of the entire screen ! int scr_x, scr_y, scr_w, scr_h; - Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h, X, Y); + Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h, X, Y, W, H); + //Make border's lower right corner visible 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 |
