From fc00c1c3d405cfc53c2a7aa20bce1897814efe63 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Sat, 8 Apr 2023 17:58:35 +0600 Subject: [PATCH] Fix compose key handling when IME is not enabled --- src/Avalonia.X11/X11Platform.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Avalonia.X11/X11Platform.cs b/src/Avalonia.X11/X11Platform.cs index e4e5dbfcb8..fc8b6f2ed6 100644 --- a/src/Avalonia.X11/X11Platform.cs +++ b/src/Avalonia.X11/X11Platform.cs @@ -50,9 +50,8 @@ namespace Avalonia.X11 useXim = true; } - // XIM doesn't work at all otherwise - if (useXim) - setlocale(0, ""); + // We have problems with text input otherwise + setlocale(0, ""); XInitThreads(); Display = XOpenDisplay(IntPtr.Zero);