diff options
| author | Manolo Gouy <Manolo> | 2014-11-11 16:08:09 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-11-11 16:08:09 +0000 |
| commit | e4d4f400a4b42f4713f2d2dc5e29b0c73a7717f1 (patch) | |
| tree | d77fad5fb4e0e829a11dabd1f72f6da652614331 /src/Fl_Gl_Window.cxx | |
| parent | f9f4ecedf7c16d160aeb9de0e9cd954b48fa0067 (diff) | |
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
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
| -rw-r--r-- | src/Fl_Gl_Window.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
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(); |
