emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 08df1631b4: Don't overestimate supported input extension version


From: Po Lu
Subject: master 08df1631b4: Don't overestimate supported input extension version on GTK 3
Date: Mon, 4 Jul 2022 22:13:47 -0400 (EDT)

branch: master
commit 08df1631b4f0a71ef988d31c5792978fb3e587dc
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Don't overestimate supported input extension version on GTK 3
    
    * 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 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index 82a20ad1a9..7843a46ab2 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]