Commit Graph
11 Commits
Author SHA1 Message Date
Tor Hedin Brønner 02131fb22c Add swipe sensitivity preference
Tune using (defaults are [1.0, 2.0]):
dconf write /org/gnome/shell/extensions/paperwm/swipe-sensitivity "[x, y]"
2019-06-17 11:42:31 +02:00
Tor Hedin Brønner 529102add1 Add animation-time setting 2018-12-17 22:21:57 +01:00
Tor Hedin Brønner e5938191e1 gestures: don't force edge alignment when selected is visible
If the selected window is still visible we don't forc alignment with the monitor
edges, making it possible to eg. center the first/last window with a touchpad.
2018-12-14 10:36:50 +01:00
Tor Hedin Brønner 2d9332b283 Horizontal swipe: never end up in a offscreen window
In the case of overshooting the last/first window we could end up not having a
window under the pointer, resulting in going back to the starting window.

The code indicates that the intention was always to ensure at the end :/
2018-12-10 22:02:29 +01:00
Tor Hedin Brønner 9c645bd6eb gestures: clean up logging 2018-12-09 12:06:32 +01:00
Tor Hedin Brønner 5a4fefe536 gestures: don't use weird average velocity
This didn't seem to do much good.
2018-11-26 17:50:41 +01:00
Tor Hedin Brønner 3d6f2f9426 horizontal swipe: stop animation when starting a new swipe 2018-10-16 11:07:54 +02:00
Tor Hedin Brønner 00837ffbcc horizontal swipe: store state on space
Each space should have its own state, so that several spaces can be scrolled at
the same time.
2018-10-16 11:07:54 +02:00
Tor Hedin Brønner 73ac480f39 Get rid of the ugly spaces._yPositions 2018-09-16 12:54:37 +02:00
Tor Hedin Brønner c5d80dcdcf horizontal scroll: Use proper coordinates to select a window
This makes selection correct when the space is scaled.
2018-09-14 17:11:01 +02:00
Tor Hedin Brønner 124d752a1e Add 3 finger touchpad navigation on wayland
The code isn't all that pretty, but it's easy to modify and tune to test what
works well.

I've opted to keep the workspace menu's smooth scroll implementation. When
swiping it's necessary to wait for a button press on the desired space since the
pointer can be anywhere. As such making sure that the workspace stack always
ends up in a discrete state isn't that useful, so I opted for more control when
swiping.

We should add some preferences that users can use to tune the speed of swiping.
I assume that this can vary quite a lot between different touchpads.
2018-08-28 01:35:31 +02:00