From 8c9d34facfdc630a6a147e639a7eeb4938e745a9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 28 Feb 2011 17:48:55 +0000 Subject: The got_events global variable is now updated when an event is processed by do_queued_events git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 2981b565e..57b03a889 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -654,6 +654,7 @@ static double do_queued_events( double time = 0.0 ) untilDate:[NSDate dateWithTimeIntervalSinceNow:time] inMode:NSDefaultRunLoopMode dequeue:YES]; if (event != nil) { + got_events = 1; [NSApp sendEvent:event]; // reimplemented in [FLApplication sendevent:] } fl_lock_function(); -- cgit v1.2.3