summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-09-09 09:52:16 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-09-09 09:52:16 +0000
commit820b67bc56d122310397d3d9f8608a1b1ebb9996 (patch)
tree8a731f46e5fc55a2044c1a6c34a601db645fd4f9 /src/Fl_x.cxx
parentbde4916c7e4e8a576f95a742bf362b7d55964c62 (diff)
This change will make sure that top-level windows will fit inside the screen that contains the original x and y.
The previous version would reposition windows in the screen that currently contains the mouse. That feature made it impossible to position tool windows on a second monitor, etc. . This change does not affect popup windows which will still pop up in the screen that has the mouse pointer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx2
1 files changed, 1 insertions, 1 deletions
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: