From c650d108f1497756ffde2297822e98bda3272606 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 4 May 1994 00:46:39 +0000 Subject: [PATCH] (x_own_selection): Catch errors around XSetSelectionOwner. --- src/xselect.c | 3 +++ 1 file changed, 3 insertions(+) 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) 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 */ -- 2.39.5