[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ae65f2089c: Use preferred XIM style without trying to detect if i
From: |
Po Lu |
Subject: |
master ae65f2089c: Use preferred XIM style without trying to detect if it's supported |
Date: |
Sat, 15 Jan 2022 07:17:37 -0500 (EST) |
branch: master
commit ae65f2089cfe108d761f8150280de520dba51b28
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Use preferred XIM style without trying to detect if it's supported
The old code would in general fall back to the default if the
preferred style wasn't available, which is usually worse than
what the user specified
* src/xfns.c (best_xim_style): Stop checking if the preferred
input style is supported.
---
src/xfns.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/xfns.c b/src/xfns.c
index ffad0bc3d1..d73e951754 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2643,11 +2643,7 @@ best_xim_style (struct x_display_info *dpyinfo,
int nr_supported = ARRAYELTS (supported_xim_styles);
if (dpyinfo->preferred_xim_style)
- {
- for (j = 0; j < xim->count_styles; ++j)
- if (dpyinfo->preferred_xim_style == xim->supported_styles[j])
- return dpyinfo->preferred_xim_style;
- }
+ return dpyinfo->preferred_xim_style;
for (i = 0; i < nr_supported; ++i)
for (j = 0; j < xim->count_styles; ++j)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master ae65f2089c: Use preferred XIM style without trying to detect if it's supported,
Po Lu <=