changeset 9701:26a60dd57b6e

(x_own_selection, x_get_foreign_selection): Change calls to x_catch_errors and friends.
author Richard M. Stallman <rms@gnu.org>
date Wed, 26 Oct 1994 04:58:18 +0000
parents d09dc2f44ecb
children 50dd719378b4
files src/xselect.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Wed Oct 26 04:57:41 1994 +0000
+++ b/src/xselect.c	Wed Oct 26 04:58:18 1994 +0000
@@ -244,10 +244,10 @@
   selection_atom = symbol_to_x_atom (dpyinfo, display, selection_name);
 
   BLOCK_INPUT;
-  x_catch_errors (selected_frame);
+  x_catch_errors (display);
   XSetSelectionOwner (display, selection_atom, selecting_window, time);
-  x_check_errors (selected_frame, "Can't set selection: %s");
-  x_uncatch_errors (selected_frame);
+  x_check_errors (display, "Can't set selection: %s");
+  x_uncatch_errors (display);
   UNBLOCK_INPUT;
 
   /* Now update the local cache */
@@ -1049,7 +1049,7 @@
     type_atom = symbol_to_x_atom (dpyinfo, display, target_type);
 
   BLOCK_INPUT;
-  x_catch_errors (selected_frame);
+  x_catch_errors (display);
   XConvertSelection (display, selection_atom, type_atom, target_property,
 		     requestor_window, requestor_time);
   XFlush (display);
@@ -1067,8 +1067,8 @@
   wait_reading_process_input (secs, usecs, reading_selection_reply, 0);
 
   BLOCK_INPUT;
-  x_check_errors (selected_frame, "Cannot get selection: %s");
-  x_uncatch_errors (selected_frame);
+  x_check_errors (display, "Cannot get selection: %s");
+  x_uncatch_errors (display);
   x_stop_queuing_selection_requests (selected_frame);
   UNBLOCK_INPUT;