Skip to content

Commit 0c0b662

Browse files
authored
Always propagate vertical gestures if disabled (#1036)
Do not block [V-Shell (vertical-workspaces)](https://github.com/G-dH/vertical-workspaces) from handling the down swipe. With the combo of the two extensions, we're a lot closer to a niri-like experience: https://github.com/user-attachments/assets/3283ccfa-4b59-4e00-81bd-24ad259a0340 It's not perfect, e.g. the newly horizontalized overview gesture can still be triggered sometimes accidentally instead of the window scrolling (reproducibly: immediately after letting go of the workspace switcher), but it's a start.
2 parents 9f9e967 + a256c8c commit 0c0b662

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gestures.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ export function enable(extension) {
113113
return Clutter.EVENT_PROPAGATE;
114114
}
115115

116+
// if our vertical gesture is disabled, propagate always!
117+
// (might be used for a vertical-workspaces addon)
118+
if (gestureWorkspaceFingers() === 0) {
119+
swipeTrackersEnable();
120+
return Clutter.EVENT_PROPAGATE;
121+
}
122+
116123
let dir_y = -dy * natural * Settings.prefs.swipe_sensitivity[1];
117124
// if not Tiling.inPreview and swipe is UP => propagate event to overview
118125
if (!Tiling.inPreview && dir_y > 0) {

0 commit comments

Comments
 (0)