Skip to content

Commit

Permalink
MacOS: slightly simpler implementation of Fl_Cocoa_Window_Driver::wai…
Browse files Browse the repository at this point in the history
…t_for_expose().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Oct 18, 2017
1 parent fae02f2 commit a92b628
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Fl_cocoa.mm
Expand Up @@ -3120,10 +3120,8 @@ - (NSInteger)windowLevel {
if (fl_mac_os_version < 101300) {
[fl_xid(pWindow) recursivelySendToSubwindows:@selector(waitForExpose)];
} else {
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask
untilDate:[NSDate dateWithTimeIntervalSinceNow:0]
inMode:NSDefaultRunLoopMode dequeue:YES];
if (event) [NSApp postEvent:event atStart:NO];
[NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil
inMode:NSDefaultRunLoopMode dequeue:NO];
}
}

Expand Down

0 comments on commit a92b628

Please sign in to comment.