OSX: Fixed screen updates durin DND operations
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
309742dab3
commit
00e8e44cf4
@ -1738,6 +1738,7 @@ static void q_set_window_title(NSWindow *nsw, const char * name, const char *mi
|
||||
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 @@ static void q_set_window_title(NSWindow *nsw, const char * name, const char *mi
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user