diff options
| author | Manolo Gouy <Manolo> | 2015-12-07 17:53:26 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-12-07 17:53:26 +0000 |
| commit | caba454f3957e2ea28dc2a477fa6e8915d64f35b (patch) | |
| tree | f433da9b971b3b008aa28d4bacf4d8b806b1e4bd /src | |
| parent | 6ccbedb5db5f5851fca1bad30da73eebccabd9c0 (diff) | |
Mac OS: removed some code that was duplicated by checkSubwindowFrame run later.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index ef4b06e14..91e8a0ddc 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3091,18 +3091,6 @@ void Fl_X::make(Fl_Window* w) // next 2 statements so a subwindow doesn't leak out of its parent window [cw setOpaque:NO]; [cw setBackgroundColor:[NSColor clearColor]]; // transparent background color - CGRect srect = CGRectMake(0, 0, w->w(), w->h()); - Fl_Window *parent, *from = w; - int fromx = 0, fromy = 0; - while ((parent = from->window()) != NULL) { - fromx -= from->x(); // parent origin in w's coordinates - fromy -= from->y(); - srect = CGRectIntersection(CGRectMake(fromx, fromy, parent->w(), parent->h()), srect); - from = parent; - } - if (!CGRectEqualToRect(srect, CGRectMake(0, 0, w->w(), w->h()))) { // if subwindow extends outside its parent windows - x->subRect(new CGRect(srect)); - } [cw setSubwindowFrame]; // needed if top window was first displayed miniaturized FLWindow *pxid = fl_xid(w->top_window()); |
