Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input is not functioning in Chromium and Electron with enabled Wayland mode when using Enigo. #336

Open
intbyte-100 opened this issue Oct 3, 2024 · 1 comment

Comments

@intbyte-100
Copy link

Description: Text input is not functioning in Chromium and Electron with enabled Wayland mode when using Enigo.

Environment:

  • OS: Arch Linux
  • Wayland Compositor: hyprland
  • Enigo Version: 0.2.1
  • Chromium Version: 128.0.6613.84
  • Rust Version: 1.81.0

Steps to Reproduce:

  1. Run a Wayland session.
  2. Launch Chromium with enabled wayland ozon mode.
  3. Execute the Enigo script to simulate text input.

Expected Behavior: Text input should be registered in the Chromium and Electron applications.

Actual Behavior: Text input does not appear in either Chromium or Electron applications.

Additional Information: Other applications are working correctly with Enigo in the same Wayland session.

@intbyte-100 intbyte-100 changed the title Text is not typing in chromium and electron apps under wayland mode Text input is not functioning in Chromium and Electron with enabled Wayland mode when using Enigo. Oct 3, 2024
@pentamassiv
Copy link
Collaborator

I don't have an idea why it would fail only for these applications. I don't use hyprland so I will likely not be able to test this for a few weeks/months. I think it is a bug on the compositor's side. If it works for other applications, enigo seems to work fine. Unless for the other applications X11 was used. Try to run the keyboard example with:

cargo run --example keyboard --no-default-features --features wayland

and test the other applications again. Even if the Wayland features is selected, X11 will not get deactivated, because some programs will still need it. If you disable the default features as well, enigo is built without any X11 support.

@pentamassiv pentamassiv added the Linux Linux spedific label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants