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:
parent
678453ebc6
commit
9298a571eb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue