Skip to content

Fcitx5 input method not working with SDL3 games via Xwayland #832

Open

Description

@Bamcane

Your system information

  • Steam Runtime Version: Steam Linux Runtime 3.0 (Sniper) 3.0.20260608.242788
  • Distribution (e.g. Ubuntu 18.04): Archlinux
  • Link to your full system information (Help -> Steam Runtime Diagnostics) in a Gist: Diagnostics
  • Have you checked for system updates?: Yes
  • What compatibility tool are you using?: Steam Linux Runtime
  • What versions are listed in steamapps/common/SteamLinuxRuntime/VERSIONS.txt?
#Name	Version		Runtime	Runtime_Version	Comment
depot	1.0.20260430.230225			# Overall version number
LD_LIBRARY_PATH	1.0.20260430.230225	scout	1.0.20260430.230225	# steam-runtime/
scripts	0.20260430.0			# from steam-runtime-tools
  • What versions are listed in steamapps/common/SteamLinuxRuntime_soldier/VERSIONS.txt?
#Name	Version		Runtime	Runtime_Version	Comment
depot	2.0.20260507.232681			# Overall version number
pressure-vessel	0.20260505.0			
pressure-vessel-arm64	0.20260505.0			
scripts	0.20260505.0			# from steam-runtime-tools
soldier	2.0.20260507.232681	soldier	2.0.20260507.232681	# soldier_platform_2.0.20260507.232681/
  • What versions are listed in steamapps/common/SteamLinuxRuntime_sniper/VERSIONS.txt?
#Name	Version		Runtime	Runtime_Version	Comment
depot	3.0.20260608.242788			# Overall version number
pressure-vessel	0.20260601.0			
pressure-vessel-arm64	0.20260601.0			
scripts	0.20260601.0			# from steam-runtime-tools
sniper	3.0.20260608.242788	sniper	3.0.20260608.242788	# sniper_platform_3.0.20260608.242788/
  • What versions are listed in steamapps/common/SteamLinuxRuntime_4/VERSIONS.txt?
#Name	Version		Runtime	Runtime_Version	Comment
depot	4.0.20260608.242786			# Overall version number
pressure-vessel	0.20260601.0			
pressure-vessel-arm64	0.20260601.0			
scripts	0.20260601.0			# from steam-runtime-tools
steamrt4	4.0.20260608.242786	steamrt4	4.0.20260608.242786	# steamrt4_platform_4.0.20260608.242786/

Please describe your issue in as much detail as possible:

I always test every version of my game on steam linux runtime.
Recently, I found my IME (fcitx5) couldn't input anything on latest linux runtime, unless I inactive it.
Not sure if this is a wayland only issue, but it's not happened on the oldder linux runtime

Steps for reproducing this issue:

  1. Run Steam (Runtime) on ArchLinux Wayland
  2. Launch Teeworlds: Archive (It's on Steam)
  3. Active a input box and try to input something through IME

Activity

  1. smcv commented on Jun 15, 2026

    @smcv
    Contributor

    @slouken, could this be a recent regression in SDL3?

    Teeworlds: Archive appears to be a SLR_sniper game, so it would have SDL 3.4.10 (and sdl2-compat 2.32.70 if that's relevant).

    fcitx5 is mostly used for Chinese and Japanese, and according to the attached diagnostics this system is using Chinese (specifically zh_CN.UTF-8).

    ArchLinux Wayland

    The issue report doesn't mention which Wayland compositor, but from the attached diagnostics it seems to be KDE Plasma Desktop.

  2. Bamcane commented on Jun 15, 2026

    @Bamcane
    Author

    Also what I need to mention is that this issue won't happen if the game runs on system native library.

  3. smcv commented on Jun 15, 2026

    @smcv
    Contributor

    this issue won't happen if the game runs on system native library

    What are the exact steps/workarounds you used? Just running the game's executable directly, without going via Steam?

  4. smcv commented on Jun 15, 2026

    @smcv
    Contributor

    It looks like SDL talks to fcitx using D-Bus messages, without actually loading any fcitx libraries or even including any fcitx header files. It's enabled if $SDL_IM_MODULE is set to fcitx, or if $SDL_IM_MODULE is unset and XMODIFIERS contains @im=fcitx.

  5. Bamcane commented on Jun 15, 2026

    @Bamcane
    Author

    What are the exact steps/workarounds you used? Just running the game's executable directly, without going via Steam?

    I just compile a native library version without going via Steam Linux Runtime SDK

  6. Bamcane commented on Sep 12, 2026

    @Bamcane
    Author

    same problem happens on steam linux runtime 4.0

  7. Bamcane commented on Sep 12, 2026

    @Bamcane
    Author

    so I have done a research, that's because the Steam runs on XWayland. If the user set SDL_VIDEO_DRIVER=wayland, the issue will be solved, but the steam overlay can't be hooked.

  8. smcv commented on Sep 14, 2026

    @smcv
    Contributor

    Yes, the Steam overlay is known to be incompatible with native Wayland (ValveSoftware/steam-for-linux#8020) and until that changes, all versions of the Steam Linux Runtime need to force use of the X11 protocol via Xwayland on Wayland systems.

    Does fcitx5 normally work with Xwayland apps? (I mean non-SDL Xwayland apps, like GTK apps with GDK_BACKEND=x11.)

    If fcitx5 doesn't work with Xwayland apps at all, then that sounds like a fcitx5 limitation which would have to be fixed in fcitx5.

    If fcitx5 is meant to work with Xwayland apps, but doesn't work with SDL3 and SDL_VIDEO_DRIVER=x11, then that sounds like a SDL limitation which would have to be fixed in SDL3, and then a new Steam Linux Runtime version could import the updated SDL3.

    (@kisak-valve, I think it might make sense to change the title to fcitx5 input method not working with SDL3 games via Xwayland, unless we know about other input methods that are affected.)

  9. Bamcane commented on Sep 14, 2026

    @Bamcane
    Author

    Steam is running on Xwayland on my PC, and it's able to input via fcitx5 on Steam.
    Don't know if it's the issue between SDL3 and XIM or Steam runtime.

  10. changed the title [-][Linux] Wayland IME couldn't be used on some SDL3 games[/-] [+]Fcitx5 input method not working with SDL3 games via Xwayland[/+] on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions