FLTK logo

[Library] r7367 - branches/branch-1.3/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r7367 - branches/branch-1.3/src fltk-dev Mar 30, 2010  
 
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];

Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.