1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

(kbd_buffer_get_event, swallow_events): Remove selection_request event

from input queue before processing it.
This commit is contained in:
Richard M. Stallman 1995-02-02 18:55:39 +00:00
parent db3906fd07
commit 4581e9282b

View file

@ -2142,8 +2142,12 @@ kbd_buffer_get_event ()
if (event->kind == selection_request_event)
{
#ifdef HAVE_X11
x_handle_selection_request (event);
struct input_event copy = *event;
/* Remove it from the buffer before processing it,
since otherwise swallow_events will see it
and process it again. */
perd->kbd_fetch_ptr = event + 1;
x_handle_selection_request (&copy);
#else
/* We're getting selection request events, but we don't have
a window system. */
@ -2319,8 +2323,10 @@ swallow_events ()
if (event->kind == selection_request_event)
{
#ifdef HAVE_X11
x_handle_selection_request (event);
struct input_event copy;
copy = *event;
perd->kbd_fetch_ptr = event + 1;
x_handle_selection_request (&copy);
#else
/* We're getting selection request events, but we don't have
a window system. */