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

Layer shell focus issue #769

Open
dcz-self opened this issue Aug 24, 2024 · 0 comments · May be fixed by #770
Open

Layer shell focus issue #769

dcz-self opened this issue Aug 24, 2024 · 0 comments · May be fixed by #770

Comments

@dcz-self
Copy link

Squeekboard is not working reliably when trying to input text to a window.

Steps to reproduce:

  1. Run Squeekboard
  2. Run WAYLAND_DEBUG=1 yad --entry 2&>1 | grep text
  3. Type in any two buttons

Expected: The entry field has text from both input events, and they come from the text-input interface
Actual: the text does not come in as text-input (may come as keyboard events).

Problem

When clicking on the layer-surface panel of squeekboard, despite KeyboardInteractivity=False, the yad application receives a leave event zwp_text_input_v3@35.leave, causing it to disable text input. Then the input method has nowhere to send to.

Actual scenario:

  1. Click on layer-shell panel
  2. yad receives zwp_text_input_v3@35.leave
  3. yad sends "disable"
  4. input method receives "inactive"
  5. Input method receives click. Input method can't send text to inactive interface.

Expected:

  1. Click on layer-shell panel
  2. Yad receives no event directly caused by that
  3. Input method receives click.
  4. Input method sends text to the active interface
  5. Yad receives text

Diagnosis

This looks like disabling keyboard interactivity on the layer shell doesn't prevent it from taking the input-method focus.

I'll try to figure it out.

dcz-self pushed a commit to dcz-self/cosmic-comp that referenced this issue Aug 24, 2024
Fixes pop-os#769

A layer shell requesting "KeyboardInteractive=False" would cause the compositor to momentarily drop focus from the original surface, and assume no focus.
If the layer shell click produces a text input event, then the original surface can't receive the event, breaking the input method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant