Fix STR #2695 (continued). Use of Fl::x() is appropriate only under Mac OS.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-08-08 15:24:19 +00:00
parent 59fdc24b16
commit 2beb43cf85

View File

@ -279,8 +279,11 @@ menuwindow::menuwindow(const Fl_Menu_Item* m, int X, int Y, int Wp, int Hp,
int scr_x, scr_y, scr_w, scr_h;
int tx = X, ty = Y;
Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h);
#ifdef __APPLE__
scr_x = Fl::x();
scr_w = Fl::w();
#endif
scr_y = Fl::y();
scr_h = Fl::h();
if (!right_edge || right_edge > scr_x+scr_w) right_edge = scr_x+scr_w;