Skip to content

Electron not respecting diacritics and/or keyboard input method in Wayland sessions #46823

Closed as not planned

Description

@khaosdoctor

Preflight Checklist

Electron Version

34 and 33.4.0

What operating system(s) are you using?

Other Linux

Operating System Version

6.14.3-arch1-1

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Typing dead keys like '+m when using a keyboard layout us-intl with dead keys should output 'm and not ḿ

Actual Behavior

Typing '+m or any other diacritic in any applications that use Electron (I tested with Discord, Spotify, Obsidian, and 1Password) will type ḿ and other non-desired diacritics by my keyboard configurations.

I've set both .XCompose to avoid some diacritics, which is respected in all other apps, except for the ones that use Electron in the background. I'm also using ELECTRON_OZONE_PLATFORM_HINT=auto in all of these to mitigate a problem where XWayland cannot detect windows that are on a secondary monitor, but even without the flag, on the main monitor, the diacritics keep appearing.

Testcase Gist URL

No response

Additional Information

Weird enough, this behavior is also happening with Vivaldi Browser (already sent a bug report to them) when forcing Chromium flags to use Wayland the same way as other Electron applications. I'm not sure if they use Electron or some derivative in the software, but the bug is the same.

Activity

  1. added theissue type on Apr 27, 2025
  2. nikwen commented on Apr 28, 2025

    @nikwen
    Member

    Thanks for reporting!

    Could you please share the code for a minimal Electron app that reproduces the issue and all the options you run it with? (Names of production apps don't help us fix issues, unfortunately.)

    Additionally, could you please check if you see the same issue in Chrome/Chromium?

  3. added
    blocked/need-info ❌
    blocked/need-repro
    on Apr 28, 2025
  4. electron-issue-triage commented on Apr 28, 2025

    @electron-issue-triage

    Hello @khaosdoctor. Thanks for reporting this and helping to make Electron better!

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

  5. khaosdoctor commented on Apr 28, 2025

    @khaosdoctor
    Author

    Sure, I didn't have to do much: https://gist.github.com/khaosdoctor/646931a6520661d40f145bbedde9d5af

    Also, Electron fiddle has the same exact problem, however, I think it's already running in "wayland mode" by default, so it just outputs these weird letters even though my keyboard is not set to output them explicitly (but on .XCompose which I'm not sure it's a file Electron/Chrome picks up in Wayland)

    Additionally, could you please check if you see the same issue in Chrome/Chromium?

    It happens in Vivaldi browser as well, when I enable the following flags in ~/.config/chromium-flags.conf:

    --enable-wayland-ime
    --ozone-platform-hint=auto
    --gtk-version=4
    --wayland-text-input-version=3
    

    Which also leads me to think this could be a Chromium issue, but the same issue doesn't happen in Google Chrome.

  6. removed
    blocked/need-info ❌
    blocked/need-repro
    on Apr 28, 2025
  7. added
    has-repro-gist
    on Apr 28, 2025
  8. nikwen commented on Apr 28, 2025

    @nikwen
    Member

    Thanks! Does this still happen on Electron v35/v36?

  9. 10 remaining items

  10. khaosdoctor commented on May 1, 2025

    @khaosdoctor
    Author

    Does the issue repro when running with --disable-gtk-ime and the wayland ozone platform ?

    Yes, I tested in Spotify (which should accept all the flags), and obsidian. But I couldn't test with the others that are using environment variables, is there an environment variable that I can set to disable it?

  11. removed
    blocked/need-info ❌
    on May 1, 2025
  12. nikwen commented on May 1, 2025

    @nikwen
    Member

    Yes, I tested in Spotify (which should accept all the flags), and obsidian. But I couldn't test with the others that are using environment variables, is there an environment variable that I can set to disable it?

    In Electron Fiddle, you can specify flags in the settings. Then you can test with your gist. (That'll be the most reliable way to test anyway.)

  13. khaosdoctor commented on May 1, 2025

    @khaosdoctor
    Author

    Oh sorry! But yes, same problem on the fiddle as well

  14. deepak1556 commented on May 2, 2025

    @deepak1556
    Member

    Thanks for testing, since the issue happens with wayland IME as well it could be narrowed down to a minimal repro for chromium repo. I will take a look this week, if anyone else wants to give it a shot please open an issue via https://issues.chromium.org/issues/wizard with repro using chromium browser.

  15. electron-issue-triage commented on Jul 31, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  16. khaosdoctor commented on Jul 31, 2025

    @khaosdoctor
    Author
  17. electron-issue-triage commented on Oct 31, 2025

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  18. electron-issue-triage commented on Nov 30, 2025

    @electron-issue-triage

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

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

    34-x-y35-x-y36-x-ybug 🪲has-repro-gistplatform/linuxstalewayland

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions