From 408d0672a4b50dc7f9d8babd6d03f5cdcbe034da Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 11 Mar 2016 08:31:36 +0000 Subject: 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 --- src/Fl_cocoa.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_cocoa.mm') 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]; } -- cgit v1.2.3