]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't overestimate supported input extension version on GTK 3
authorPo Lu <luangruo@yahoo.com>
Tue, 5 Jul 2022 02:12:19 +0000 (10:12 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 5 Jul 2022 02:13:37 +0000 (10:13 +0800)
* src/xterm.c (x_term_init): If minor > original_minor (the
maximum version supported by libXi), set it back to
original_minor.

src/xterm.c

index 82a20ad1a97805cf1c7463ac13dc59ef2c0c307e..7843a46ab25022356627527d79c34a8f2d5c7e22 100644 (file)
@@ -27099,6 +27099,13 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
        }
       else
        x_uncatch_errors_after_check ();
+
+      /* But don't delude ourselves into thinking that we can use
+        features provided by a version of the input extension that
+        libXi itself doesn't support.  */
+
+      if (minor > original_minor)
+       minor = original_minor;
 #else
       if (x_had_errors_p (dpyinfo->display))
        rc = BadRequest;