Author: matt Date: 2011-09-30 02:38:35 -0700 (Fri, 30 Sep 2011) New Revision: 9090 Log: OSX: Fixed screen updates durin DND operations
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 2011-09-30 09:37:33 UTC (rev 9089) +++ branches/branch-1.3/src/Fl_cocoa.mm 2011-09-30 09:38:35 UTC (rev 9090) @@ -1738,6 +1738,7 @@ int ret = Fl::handle( FL_DND_ENTER, target ); breakMacEventLoop(); fl_unlock_function(); + Fl::flush(); return ret ? NSDragOperationCopy : NSDragOperationNone; } - (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender @@ -1749,6 +1750,10 @@ int ret = Fl::handle( FL_DND_DRAG, target ); breakMacEventLoop(); fl_unlock_function(); + // if the DND started in the same application, Fl::dnd() will not return until + // the the DND operation is finished. The call below causes the drop indicator + // to be draw correctly (a full event handling would be better...) + Fl::flush(); return ret ? NSDragOperationCopy : NSDragOperationNone; } - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
