]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_get_foreign_selection): Use the new feature
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 00:13:42 +0000 (00:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 00:13:42 +0000 (00:13 +0000)
to queue up SelectionRequest events.

src/xselect.c

index e63967ad8e250cf66c3a131b24b309448ad09fd5..bf2b5c76a936a5bcc42e668805774b84096e4cd5 100644 (file)
@@ -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))