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

fix: manage active keyboard for seat after destroying one #5725

Merged
merged 2 commits into from Apr 23, 2024

Conversation

drendog
Copy link
Contributor

@drendog drendog commented Apr 23, 2024

Describe your PR, what does it fix/add?

There is a bug in the management of keyboard focus when you have more than one keyboard connected (like a laptop with external KVM switch scenario) and then you disconnect one.
To reproduce:

  • Focus on window 0
  • Disconnect a keyboard
  • Focus on window 1
  • Type something with the remaining keyboard

Then you will see that what you are typing will be listen by the old window 0 instead of the focused window 1

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

No

Is it ready for merging, or does it need work?

Check if the check for pKeyboard->active is really needed to change the m_pActiveKeyboard after destroying the keyboard

@vaxerski vaxerski merged commit 31d055f into hyprwm:main Apr 23, 2024
10 checks passed
gulafaran pushed a commit to gulafaran/Hyprland that referenced this pull request Apr 26, 2024
* fix: manage active keyboard for seat after destroying one

* chore: clang-format
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 this pull request may close these issues.

None yet

2 participants