Fix splurious drag-mouse-1 events after NS drag-and-drop

* src/nsterm.m ([EmacsWindow beginDrag:...]): Clear
dpyinfo->grabbed.
This commit is contained in:
Po Lu 2022-06-04 15:41:39 +08:00
parent 937a011352
commit 1289d0c3dd

View file

@ -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;