Skip to content

Implement maximize gesture#2789

Open
leolost2605 wants to merge 2 commits intomainfrom
leolost/maximize-gesture
Open

Implement maximize gesture#2789
leolost2605 wants to merge 2 commits intomainfrom
leolost/maximize-gesture

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Mar 2, 2026

Fixes #1697

On my system touchegg had a gesture configured for four finger swipe down which would mess with this gesture but idk if that's just on my system. If the gesture is configured for you too just kill touchegg and you can test this.

To test make sure you enable it via dconf editor and not via the settings because that would also enable the touchegg gesture which also messes with this.

I'm not sure how the old gesture worked but I decided to go for swipe up -> maximize, swipe down -> unmaximize.
It will animate a tile from the window position to maximized and from maximized to the old window position. I'd be happy about some UX input here whether it's ok like it's currently or what could be improved :)

Kooha-2026-03-02-21-50-17.mp4

@leolost2605 leolost2605 force-pushed the leolost/maximize-gesture branch from 025290b to cf784bf Compare March 2, 2026 20:53
@leolost2605 leolost2605 changed the title WIP: Implement maximize gesture Implement maximize gesture Mar 2, 2026
@leolost2605 leolost2605 requested review from a team March 2, 2026 20:59
@leolost2605 leolost2605 marked this pull request as ready for review March 2, 2026 20:59
@leolost2605 leolost2605 force-pushed the leolost/maximize-gesture branch from cf784bf to 3aef6a4 Compare March 2, 2026 20:59
If we managed to register our captured event handler before another
instance it can happen that we steal the gesture from the other
instance.
E.g. the user clearly swipes horizontal but once they swiped
long enough they drifted over the vertical threshold and we
will start stealing the gesture.
@leolost2605 leolost2605 force-pushed the leolost/maximize-gesture branch from 3aef6a4 to 8ab3b34 Compare March 22, 2026 12:47
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.

Implement "Toggle Maximized" gesture in Gala

2 participants