diff options
| author | Manolo Gouy <Manolo> | 2016-03-11 08:31:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-11 08:31:36 +0000 |
| commit | 408d0672a4b50dc7f9d8babd6d03f5cdcbe034da (patch) | |
| tree | c846deb289be7eed30d72bb06a8fc958bbb55130 /src/Fl_cocoa.mm | |
| parent | 2952c530b856c5cca973fef34edc5d738fb8c0f7 (diff) | |
Rewrite Fl_Window::wait_for_expose() using the window driver approach.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index f4c57659e..425f844bd 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3095,11 +3095,11 @@ void Fl_Window::size_range_() { } } -void Fl_Window::wait_for_expose() +void Fl_Cocoa_Window_Driver::wait_for_expose() { - if (shown()) { + if (pWindow->shown()) { //TODO: do that also for pWindow's subwindows // this makes freshly created windows appear on the screen, if they are not there already - NSModalSession session = [NSApp beginModalSessionForWindow:i->xid]; + NSModalSession session = [NSApp beginModalSessionForWindow:Fl_X::i(pWindow)->xid]; [NSApp runModalSession:session]; [NSApp endModalSession:session]; } |
