Fix manually disowning Emacs drag atoms

* src/xterm.c (handle_one_xevent): Disown Motif drag atom if
eventp->time is CurrentTime as well.  This can happen with some
synthetic events.
This commit is contained in:
Po Lu 2022-07-05 19:17:03 +08:00
parent 678453ebc6
commit 9298a571eb

View file

@ -16908,7 +16908,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
const XSelectionClearEvent *eventp = &event->xselectionclear;
if (eventp->selection == dpyinfo->motif_drag_atom
&& dpyinfo->motif_drag_atom_time <= eventp->time)
&& (eventp->time == CurrentTime
|| dpyinfo->motif_drag_atom_time <= eventp->time))
dpyinfo->motif_drag_atom = None;
inev.sie.kind = SELECTION_CLEAR_EVENT;