Fix splurious drag-mouse-1 events after NS drag-and-drop
* src/nsterm.m ([EmacsWindow beginDrag:...]): Clear dpyinfo->grabbed.
This commit is contained in:
parent
937a011352
commit
1289d0c3dd
1 changed files with 5 additions and 1 deletions
|
@ -9662,7 +9662,6 @@ - (NSDragOperation) beginDrag: (NSDragOperation) op
|
|||
NSInteger window_number;
|
||||
NSWindow *w;
|
||||
#endif
|
||||
|
||||
drag_op = op;
|
||||
selected_op = NSDragOperationNone;
|
||||
image = [[NSImage alloc] initWithSize: NSMakeSize (1.0, 1.0)];
|
||||
|
@ -9716,6 +9715,11 @@ - (NSDragOperation) beginDrag: (NSDragOperation) op
|
|||
#endif
|
||||
unblock_input ();
|
||||
|
||||
/* Assume all buttons have been released since the drag-and-drop
|
||||
operation is now over. */
|
||||
if (!dnd_return_frame)
|
||||
x_display_list->grabbed = 0;
|
||||
|
||||
[image release];
|
||||
|
||||
*frame_return = dnd_return_frame;
|
||||
|
|
Loading…
Add table
Reference in a new issue