Skip to content

Commit

Permalink
Make sure the FLTK and the system keep their representations of windo…
Browse files Browse the repository at this point in the history
…w coordinates synchronized.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Sep 22, 2015
1 parent a3b43d5 commit 2dd9d06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Fl_cocoa.mm
Expand Up @@ -2992,6 +2992,9 @@ static void set_subwindow_frame(Fl_Window *w) { // maps a subwindow at its corre
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];
Expand Down

0 comments on commit 2dd9d06

Please sign in to comment.