diff options
-rw-r--r-- | src/xfns.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/xfns.c b/src/xfns.c index ffad0bc3d1a..d73e951754b 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) |