diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2010-04-11 09:52:05 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2010-04-11 09:52:05 +0000 |
| commit | 896c6c27664e679907195f9cc9a32e55c81998fb (patch) | |
| tree | 8864092a1ec755ae8f10e06a4d01525dc0f2c37d /src | |
| parent | 2fe7eabb6249c4c9ff0f6e697679a7f9f85ce0eb (diff) | |
Apple Cocoa: modal windows would not resize.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 3480bd0ab..6a9654f75 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2100,7 +2100,7 @@ void Fl_X::make(Fl_Window* w) winstyle |= NSResizableWindowMask; } } else { - if (w->resizable()) { + if (w->resizable()) { Fl_Widget *o = w->resizable(); int minw = o->w(); if (minw > 100) minw = 100; int minh = o->h(); if (minh > 100) minh = 100; @@ -2121,7 +2121,8 @@ void Fl_X::make(Fl_Window* w) winstyle = NSBorderlessWindowMask; } } else if (w->modal()) { - winstyle &= ~(NSResizableWindowMask | NSMiniaturizableWindowMask); + winstyle &= ~NSMiniaturizableWindowMask; + // winstyle &= ~(NSResizableWindowMask | NSMiniaturizableWindowMask); // winlevel = NSModalPanelWindowLevel; } else if (w->non_modal()) { |
