summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiraYumi <aira.youme@airanyumi.net>2024-05-08 20:41:17 +0900
committerGitHub <noreply@github.com>2024-05-08 20:41:17 +0900
commitf59af191051bd182806d5cfc77a3e538f02fe129 (patch)
treef3b2e639baf88dcb26e907c05d13fceea3eedbfe
parentf69ac40e24e78fe265c81ff3785c185229764151 (diff)
enable ime on xwayland
-rw-r--r--indra/llwindow/llwindowsdl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index b8b502508b..798732e84d 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -654,6 +654,11 @@ BOOL LLWindowSDL::createContext(int x, int y, int width, int height, int bits, B
SDL_SetHint( std::get<0>(hint), std::get<1>(hint));
}
+#if LL_LINUX
+ // Enable IME on XWayland
+ setenv("XMODIFIERS", std::string("@im=fcitx;ibus").c_str(), 1);
+#endif
+
std::initializer_list<std::tuple<uint32_t, char const*, bool>> initList=
{ {SDL_INIT_VIDEO,"SDL_INIT_VIDEO", true},
{SDL_INIT_AUDIO,"SDL_INIT_AUDIO", false},