From d8c4447c8429328711f292dfee95703122c3ea33 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 26 Nov 2018 09:21:40 +0000 Subject: [PATCH] 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 --- src/Fl_cocoa.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 330f23e64..5835a2288 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -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(); } }