summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-07-27 00:13:42 +0000
committerRichard M. Stallman <rms@gnu.org>1994-07-27 00:13:42 +0000
commit35952883e59fc132dfe568c4dcda223cfca4fe15 (patch)
tree2d7e9717d7630a6b66ef726143bcb52b819ba0f2 /src/xselect.c
parenta7c626c929ec4fcb35c02a04df32c80549198236 (diff)
downloademacs-35952883e59fc132dfe568c4dcda223cfca4fe15.tar.gz
(x_get_foreign_selection): Use the new feature
to queue up SelectionRequest events.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c
index e63967ad8e2..bf2b5c76a93 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1052,6 +1052,7 @@ x_get_foreign_selection (selection_symbol, target_type)
reading_selection_window = requestor_window;
reading_which_selection = selection_atom;
XCONS (reading_selection_reply)->car = Qnil;
+ x_start_queuing_selection_requests ();
UNBLOCK_INPUT;
/* This allows quits. Also, don't wait forever. */
@@ -1062,6 +1063,7 @@ x_get_foreign_selection (selection_symbol, target_type)
BLOCK_INPUT;
x_check_errors ("Cannot get selection: %s");
x_uncatch_errors ();
+ x_stop_queuing_selection_requests ();
UNBLOCK_INPUT;
if (NILP (XCONS (reading_selection_reply)->car))