diff options
| author | Manolo Gouy <Manolo> | 2015-09-22 05:43:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-09-22 05:43:37 +0000 |
| commit | 2dd9d06818fda6c300d2e35561785612b25b149f (patch) | |
| tree | c723f90beac2bbc673e8d6f18d5f75dbb1fe6a42 /src | |
| parent | a3b43d569c198bad6d1708e394f772309a487101 (diff) | |
Make sure the FLTK and the system keep their representations of window coordinates synchronized.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index a6c4c2dc2..b7e5218c6 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2992,6 +2992,9 @@ void Fl_X::make(Fl_Window* w) static NSPoint delta = NSZeroPoint; delta = [cw cascadeTopLeftFromPoint:delta]; } + crect = [cw frame]; // synchronize FLTK's and the system's window coordinates + w->x(int(crect.origin.x)); + w->y(int(main_screen_height - (crect.origin.y + w->h()))); } if(w->menu_window()) { // make menu windows slightly transparent [cw setAlphaValue:0.97]; |
