backend/input(winit): translate pinch and hold gestures into input ev… - #2172
Open
Atan-D-RP4 wants to merge 1 commit into
Open
Atan-D-RP4 wants to merge 1 commit into
Atan-D-RP4 wants to merge 1 commit into
Conversation
ids1024
reviewed
Sep 16, 2026
| fn has_capability(&self, capability: DeviceCapability) -> bool { | ||
| matches!( | ||
| capability, | ||
| DeviceCapability::Keyboard | DeviceCapability::Pointer | DeviceCapability::Touch |
Member
There was a problem hiding this comment.
We should be able to add DeviceCapability::Gesture here now.
Member
|
For some reason I don't seem to see anvil clients getting gesture events with this even after using |
Member
|
Oh, I suppose for Anvil |
Author
|
Ah, then should this PR include that work? I haven't done any messing around or testing with Anvil, just Niri. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#2156 added support for Wayland Pinch, Pan, and Rotation gestures. This is the Smithay side wiring for them. Or at least the first iteration of it.
With this, I can test:
in a nested niri winit-window.
AI Disclosure: AI was used to research the problem and point me to relevant code and issues with my own. The actual fix and text written are solely my own. Please let me know if that disqualifies the PR, happy to have it taken down if it does.
Checklist