Author: matt Date: 2011-09-30 02:37:33 -0700 (Fri, 30 Sep 2011) New Revision: 9089 Log: OSX: Fixed screen updates durin DND operations
Modified: branches/branch-3.0/src/fltk3/cocoa.mm Modified: branches/branch-3.0/src/fltk3/cocoa.mm =================================================================== --- branches/branch-3.0/src/fltk3/cocoa.mm 2011-09-30 08:10:44 UTC (rev 9088) +++ branches/branch-3.0/src/fltk3/cocoa.mm 2011-09-30 09:37:33 UTC (rev 9089) @@ -1721,6 +1721,10 @@ int ret = fltk3::handle( fltk3::DND_ENTER, 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...) + fltk3::flush(); return ret ? NSDragOperationCopy : NSDragOperationNone; } - (NSDragOperation)draggingUpdated:(id < NSDraggingInfo >)sender @@ -1732,6 +1736,7 @@ int ret = fltk3::handle( fltk3::DND_DRAG, target ); breakMacEventLoop(); fl_unlock_function(); + fltk3::flush(); return ret ? NSDragOperationCopy : NSDragOperationNone; } - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
