# HG changeset patch # User Richard M. Stallman # Date 768012399 0 # Node ID a4f8f33135e7055c74e70c43d13a564e06596ba1 # Parent 1d9c6f42c7aeb806f5e1649751f6af0a78c2c180 (x_own_selection): Catch errors around XSetSelectionOwner. diff -r 1d9c6f42c7ae -r a4f8f33135e7 src/xselect.c --- a/src/xselect.c Wed May 04 00:38:14 1994 +0000 +++ b/src/xselect.c Wed May 04 00:46:39 1994 +0000 @@ -249,7 +249,10 @@ 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 */