]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_own_selection): Catch errors around XSetSelectionOwner.
authorRichard M. Stallman <rms@gnu.org>
Wed, 4 May 1994 00:46:39 +0000 (00:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 4 May 1994 00:46:39 +0000 (00:46 +0000)
src/xselect.c

index ef3a78d694dc1d04b0343a96c1004c7830df14a4..bd5b979d257efc0f8ce6e5a8a5049e7f87866be0 100644 (file)
@@ -249,7 +249,10 @@ x_own_selection (selection_name, selection_value)
   selection_atom = symbol_to_x_atom (display, selection_name);
 
   BLOCK_INPUT;
+  x_catch_errors ();
   XSetSelectionOwner (display, selection_atom, selecting_window, time);
+  x_check_errors ("Can't set selection: %s");
+  x_uncatch_errors ();
   UNBLOCK_INPUT;
 
   /* Now update the local cache */