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 events sometimes sent before keyboard::enter #1130

Closed
travankor opened this issue Mar 25, 2021 · 1 comment
Closed

Text input events sometimes sent before keyboard::enter #1130

travankor opened this issue Mar 25, 2021 · 1 comment
Labels

Comments

@travankor
Copy link
Contributor

Describe the bug
Wayfire sometimes sends IME events to clients before the client receives the keyboard focus event.

To Reproduce
Steps to reproduce the behavior:

  1. Enable an IME client like squeekboard
  2. WAYLAND_DEBUG=1 a client that supports IME events
  3. Text input and keyboard events are sometimes not synchronized

Expected behavior
keyboard::enter() is sent before text_input_v3::enter().

Debug logs

[2144718.172] wl_keyboard@19.enter(461189, wl_surface@3, array)
[2144718.343] zwp_text_input_v3@16.enter(wl_surface@3)
...
[2147513.849] wl_keyboard@19.leave(461194, wl_surface@3)
[2147513.880] zwp_text_input_v3@16.leave(wl_surface@3)
...
[2154053.513] wl_keyboard@19.enter(461201, wl_surface@3, array)
[2154053.640] zwp_text_input_v3@16.enter(wl_surface@3)
...
[2155286.422] wl_keyboard@19.leave(461207, wl_surface@3)
[2155286.458] zwp_text_input_v3@16.leave(wl_surface@3)
...
[2155840.916] zwp_text_input_v3@16.enter(wl_surface@3)

Wayfire version
0.7.0

@ammen99
Copy link
Member

ammen99 commented Mar 8, 2024

I think this shouldn't be a problem anymore, we updated quite a lot about text-input, especially if you use the input-method-v1 plugin which will soon be merged #2172

@ammen99 ammen99 closed this as completed Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants