Better implementation of Fl_Window::wait_for_expose() for Mac OS 10.13 High Sierra.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
1af036f6ed
commit
64112db0cb
@ -3138,7 +3138,14 @@ void Fl_Window::size_range_() {
|
||||
|
||||
void Fl_Window::wait_for_expose()
|
||||
{
|
||||
[fl_xid(this) recursivelySendToSubwindows:@selector(waitForExpose)];
|
||||
if (fl_mac_os_version < 101300) {
|
||||
[fl_xid(this) recursivelySendToSubwindows:@selector(waitForExpose)];
|
||||
} else {
|
||||
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask
|
||||
untilDate:[NSDate dateWithTimeIntervalSinceNow:0]
|
||||
inMode:NSDefaultRunLoopMode dequeue:YES];
|
||||
if (event) [NSApp postEvent:event atStart:NO];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user