aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-05-04 00:46:39 +0000
committerRichard M. Stallman1994-05-04 00:46:39 +0000
commitc650d108f1497756ffde2297822e98bda3272606 (patch)
tree70e952974798778d9211ec138ccfe4c360881f2a /src
parent7bbe2cc79417a40c2a1dcb2096f22adaf14431f0 (diff)
downloademacs-c650d108f1497756ffde2297822e98bda3272606.tar.gz
emacs-c650d108f1497756ffde2297822e98bda3272606.zip
(x_own_selection): Catch errors around XSetSelectionOwner.
Diffstat (limited to 'src')
-rw-r--r--src/xselect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c
index ef3a78d694d..bd5b979d257 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -249,7 +249,10 @@ x_own_selection (selection_name, selection_value)
249 selection_atom = symbol_to_x_atom (display, selection_name); 249 selection_atom = symbol_to_x_atom (display, selection_name);
250 250
251 BLOCK_INPUT; 251 BLOCK_INPUT;
252 x_catch_errors ();
252 XSetSelectionOwner (display, selection_atom, selecting_window, time); 253 XSetSelectionOwner (display, selection_atom, selecting_window, time);
254 x_check_errors ("Can't set selection: %s");
255 x_uncatch_errors ();
253 UNBLOCK_INPUT; 256 UNBLOCK_INPUT;
254 257
255 /* Now update the local cache */ 258 /* Now update the local cache */