Skip to content

Rework grouped gesture controllers - #2953

Merged
leolost2605 merged 4 commits into
mainfrom
leolost/gesture-controller-group-with
Oct 11, 2026
Merged

leolost2605 merged 4 commits into
mainfrom
leolost/gesture-controller-group-with

Conversation

@leolost2605

Copy link
Copy Markdown
Member

The current solution was more of a intermediate solution that was very hacky and required hard coding possible groups and keeping static references to all TouchpadSwipeBackend instances. Rework this to scale a lot better and without needing hard coding.
This now does it how (the new) clutter gestures and how gtk gesture do it. I.e. we group gesture controllers with each other by calling GestureController.group_with. This then propagates to all backends.

The motivation for this rework is that we can easily add that to the TouchScreenSwipeBackend as well.

@leolost2605
leolost2605 requested a review from a team October 10, 2026 13:08
@leolost2605
leolost2605 force-pushed the leolost/gesture-controller-group-with branch from a2394f5 to dc45b18 Compare October 11, 2026 17:37
Comment thread lib/Gestures/GestureController.vala Resolved
@leolost2605
leolost2605 force-pushed the leolost/gesture-controller-group-with branch from dc45b18 to 25a4fda Compare October 11, 2026 18:08
@leolost2605
leolost2605 requested a review from lenemter October 11, 2026 18:12
@leolost2605
leolost2605 merged commit c368772 into main Oct 11, 2026
7 checks passed
@leolost2605
leolost2605 deleted the leolost/gesture-controller-group-with branch October 11, 2026 20:36
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.

2 participants