summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-02-23 08:58:06 +0800
committerPo Lu <luangruo@yahoo.com>2022-02-23 08:58:06 +0800
commitb16e36476e1317ad40a04e2036b2dabf170935c2 (patch)
tree437ea3f61aa6e2e0de00631eef12d9836620f733
parent1f00710ecfac12de12f4a2046b9b66802b8ffac6 (diff)
downloademacs-b16e36476e1317ad40a04e2036b2dabf170935c2.tar.gz
* src/xterm.c (x_term_init): Don't catch errors too many times.
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index fffa40840ab..7d4b43773ea 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -16283,10 +16283,11 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
&xi_first_error))
{
#ifdef HAVE_GTK3
- query:
/* Catch errors caused by GTK requesting a different version of
XInput 2 than what Emacs was built with. */
x_catch_errors (dpyinfo->display);
+
+ query:
#endif
rc = XIQueryVersion (dpyinfo->display, &major, &minor);