From 7f46a38139f66fda734f3a6c445b84ea89c8f310 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Wed, 1 Jan 2020 14:54:06 -0700 Subject: [PATCH] Handle small final sigma in XConvertCase lowercase: GREEK SMALL LETTER FINAL SIGMA (U+03C2) uppercase: GREEK CAPITAL LETTER SIGMA (U+03A3) This mapping was correct in UCSConvertCase, but the "legacy" mapping must also be correct for Caps Lock to work with the final sigma key. https://gitlab.freedesktop.org/xorg/lib/libx11/issues/5 Signed-off-by: Alex Henrie --- src/KeyBind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/KeyBind.c b/src/KeyBind.c index b0acb195..75b3af82 100644 --- a/src/KeyBind.c +++ b/src/KeyBind.c @@ -741,8 +741,9 @@ XConvertCase( *upper -= (XK_Greek_alphaaccent - XK_Greek_ALPHAaccent); else if (sym >= XK_Greek_ALPHA && sym <= XK_Greek_OMEGA) *lower += (XK_Greek_alpha - XK_Greek_ALPHA); - else if (sym >= XK_Greek_alpha && sym <= XK_Greek_omega && - sym != XK_Greek_finalsmallsigma) + else if (sym == XK_Greek_finalsmallsigma) + *upper = XK_Greek_SIGMA; + else if (sym >= XK_Greek_alpha && sym <= XK_Greek_omega) *upper -= (XK_Greek_alpha - XK_Greek_ALPHA); break; case 0x13: /* Latin 9 */