swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.29k stars 1.09k forks source link

Issues with Accented Characters in Chromium-based Applications Using Ozone=X11 in Sway #8244

Open rmasad opened 1 month ago

rmasad commented 1 month ago

Sway Version: 1.9 Ubuntu 24-04

Description: When opening Chromium-based applications (or Electron apps) using Ozone=X11 (default), accented characters (á é í ó ú) do not work. However, when opening these applications with Ozone=wayland, the accented characters function correctly.

This behavior is observed only in Sway. It does not occur in Gnome or i3wm.

This is particularly problematic because snap applications cannot be opened with Wayland as they crash.

This issue is a more specific report of the problem described in this issue: https://github.com/swaywm/sway/issues/8208.

Steps to Reproduce:

  1. Open a Chromium-based application (or Electron app) in Sway using Ozone=X11.
  2. Attempt to type accented characters (á é í ó ú).

Expected Behavior: Accented characters should appear correctly when typed.

Actual Behavior: Accented characters do not work when using Ozone=X11.

Additional Information:

rmasad commented 1 month ago

By trying a lot I got the accents to work by opening the applications with WAYLAND_DISPLAY=wayland-0 , for example: "WAYLAND_DISPLAY=wayland-0 brave"

It works with everyone except Slack, which gives the following error: /bin/bash: warning: setlocale: LC_ALL: cannot change locale (es_ES.UTF-8)