summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm6
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];
}