From e4d4f400a4b42f4713f2d2dc5e29b0c73a7717f1 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 11 Nov 2014 16:08:09 +0000 Subject: Added support of true subwindows to the Mac OS X code. With this, a window inside another window is just another window with Mac OS as it was already with MSWindows and X11. This requires Mac OS X 10.2. Window nesting to any depth is possible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Gl_Window.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/Fl_Gl_Window.cxx') diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 7e97e3297..f23b8e2ab 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -180,16 +180,8 @@ void Fl_Gl_Window::make_current() { // correct parent window size to work with... GLint xywh[4]; - if (window()) { - int xoff,yoff; - const Fl_Window *win = top_window_offset(xoff, yoff); // STR #2944 [2] - xywh[0] = xoff; - xywh[1] = win->h() - yoff - h(); - } else { - xywh[0] = 0; - xywh[1] = 0; - } - + xywh[0] = 0; + xywh[1] = 0; xywh[2] = w(); xywh[3] = h(); -- cgit v1.2.3