From 24e8a0bb5d47f14727ce4d018232d935232469d2 Mon Sep 17 00:00:00 2001 From: AiraYumi Date: Thu, 9 May 2024 23:23:39 +0900 Subject: enable ime on xwayland (environment setting move) --- indra/llwindow/llwindowsdl.cpp | 5 ----- indra/newview/linux_tools/wrapper.sh | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'indra') diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp index 798732e84d..b8b502508b 100644 --- a/indra/llwindow/llwindowsdl.cpp +++ b/indra/llwindow/llwindowsdl.cpp @@ -654,11 +654,6 @@ 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> initList= { {SDL_INIT_VIDEO,"SDL_INIT_VIDEO", true}, {SDL_INIT_AUDIO,"SDL_INIT_AUDIO", false}, diff --git a/indra/newview/linux_tools/wrapper.sh b/indra/newview/linux_tools/wrapper.sh index 7d26c81283..a027aaf6d1 100755 --- a/indra/newview/linux_tools/wrapper.sh +++ b/indra/newview/linux_tools/wrapper.sh @@ -62,6 +62,10 @@ export SDL_VIDEO_X11_DGAMOUSE=0 if [ "$GTK_IM_MODULE" = "scim" ]; then export GTK_IM_MODULE=xim fi +if [ "$XMODIFIERS" = "" ]; then + ## IME is valid only for fcitx, not when using ibus + export XMODIFIERS="@im=fcitx" +fi ## - Automatically work around the ATI mouse cursor crash bug: ## (this workaround is disabled as most fglrx users do not see the bug) -- cgit v1.2.3