diff options
-rw-r--r-- | src/xselect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c index 76a2f9f5075..7719876884e 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -285,7 +285,9 @@ x_atom_to_symbol (struct x_display_info *dpyinfo, Atom atom) return QNULL; block_input (); + x_catch_errors (dpyinfo->display); str = XGetAtomName (dpyinfo->display, atom); + x_uncatch_errors (); unblock_input (); TRACE1 ("XGetAtomName --> %s", str); if (! str) return Qnil; |