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

input: Propagate modifiers to clients with only pointer focus #7927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieldg
Copy link
Contributor

@danieldg danieldg commented Jan 23, 2024

When focus_follows_mouse is off, it is possible to hover and/or scroll windows without giving them keyboard focus. However, attempts to use Ctrl+scroll on such clients will not work correctly because the keyboard modifiers are not available. This patch propagates modifier state to the client with pointer focus when it gains focus and when the state changes before sending axis events.

https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/259 discusses permitting this behavior at the protocol level.

sway/input/seat.c Outdated Show resolved Hide resolved
When focus_follows_mouse is off, it is possible to hover and/or scroll
windows without giving them keyboard focus.  However, attempts to use
Ctrl+scroll on such clients will not work correctly because the keyboard
modifiers are not available.  This patch propagates modifier state to
the client with pointer focus before sending axis events.

This depends on https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4523.

https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/259
discusses permitting this behavior at the protocol level.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants