Commit db3906fd authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_unqueue_events): Arg is now a Display *.

(x_start_queuing_selection_requests): Likewise.
(x_stop_queuing_selection_requests): Likewise.
parent afe1529d
...@@ -3104,13 +3104,13 @@ x_queue_event (f, event) ...@@ -3104,13 +3104,13 @@ x_queue_event (f, event)
so that they get processed afresh. */ so that they get processed afresh. */
static void static void
x_unqueue_events (f) x_unqueue_events (display)
FRAME_PTR f; Display *display;
{ {
while (queue != NULL) while (queue != NULL)
{ {
struct selection_event_queue *queue_tmp = queue; struct selection_event_queue *queue_tmp = queue;
XPutBackEvent (FRAME_X_DISPLAY (f), &queue_tmp->event); XPutBackEvent (display, &queue_tmp->event);
queue = queue_tmp->next; queue = queue_tmp->next;
free ((char *)queue_tmp); free ((char *)queue_tmp);
} }
...@@ -3119,8 +3119,8 @@ x_unqueue_events (f) ...@@ -3119,8 +3119,8 @@ x_unqueue_events (f)
/* Start queuing SelectionRequest events. */ /* Start queuing SelectionRequest events. */
void void
x_start_queuing_selection_requests (f) x_start_queuing_selection_requests (display)
FRAME_PTR f; Display *display;
{ {
x_queue_selection_requests++; x_queue_selection_requests++;
} }
...@@ -3128,11 +3128,11 @@ x_start_queuing_selection_requests (f) ...@@ -3128,11 +3128,11 @@ x_start_queuing_selection_requests (f)
/* Stop queuing SelectionRequest events. */ /* Stop queuing SelectionRequest events. */
void void
x_stop_queuing_selection_requests (f) x_stop_queuing_selection_requests (display)
FRAME_PTR f; Display *display;
{ {
x_queue_selection_requests--; x_queue_selection_requests--;
x_unqueue_events (f); x_unqueue_events (display);
} }
/* The main X event-reading loop - XTread_socket. */ /* The main X event-reading loop - XTread_socket. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment