Author: manolo
Date: 2010-03-30 11:14:57 -0700 (Tue, 30 Mar 2010)
New Revision: 7367
Log:
Fl_cocoa.mm: fixed bug where events of drag&drop of files at launch time were
ignored
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2010-03-30 17:38:49 UTC (rev 7366)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2010-03-30 18:14:57 UTC (rev 7367)
@@ -1284,7 +1284,6 @@
(*open_cb)(filename);
}
}
-
// Unlock access to FLTK for all threads...
fl_unlock_function();
}
@@ -1538,9 +1537,9 @@
[NSApp setDelegate:mydelegate];
[NSApp finishLaunching];
- // empty the event queue
+ // empty the event queue but keep system events for drag&drop of files at
launch
NSEvent *ign_event;
- do ign_event = [NSApp nextEventMatchingMask:NSAnyEventMask
+ do ign_event = [NSApp nextEventMatchingMask:(NSAnyEventMask &
~NSSystemDefinedMask)
untilDate:[NSDate
dateWithTimeIntervalSinceNow:0]
inMode:NSDefaultRunLoopMode
dequeue:YES];
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit