MacOS: slightly simpler implementation of Fl_Cocoa_Window_Driver::wait_for_expose().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-11-26 09:21:40 +00:00
parent 3be39b03b4
commit d8c4447c84

View File

@ -3267,11 +3267,7 @@ void Fl_Cocoa_Window_Driver::wait_for_expose()
if (fl_mac_os_version < 101300) {
[fl_xid(pWindow) recursivelySendToSubwindows:@selector(waitForExpose)];
} else {
while (dropped_files_list) {
drain_dropped_files_list();
}
[NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil
inMode:NSDefaultRunLoopMode dequeue:NO];
Fl_Window_Driver::wait_for_expose();
}
}