diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 09:48:54 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-04-25 02:00:18 -0700 |
| commit | 59de6918b3c7f3bc8e988046b3fef2cead322f9a (patch) | |
| tree | 5927c18cfe0486e0582a31cf09f0f244fe4708a2 /src/niri.rs | |
| parent | bd3d55438993a898f94500bea194377fb93004f3 (diff) | |
| download | niri-59de6918b3c7f3bc8e988046b3fef2cead322f9a.tar.gz niri-59de6918b3c7f3bc8e988046b3fef2cead322f9a.tar.bz2 niri-59de6918b3c7f3bc8e988046b3fef2cead322f9a.zip | |
overview: Add two-finger touchpad scroll
Diffstat (limited to 'src/niri.rs')
| -rw-r--r-- | src/niri.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs index 3ba1b9a4..225a3702 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -124,6 +124,7 @@ use crate::dbus::mutter_screen_cast::{self, ScreenCastToNiri}; use crate::frame_clock::FrameClock; use crate::handlers::{configure_lock_surface, XDG_ACTIVATION_TOKEN_TIMEOUT}; use crate::input::pick_color_grab::PickColorGrab; +use crate::input::scroll_swipe_gesture::ScrollSwipeGesture; use crate::input::scroll_tracker::ScrollTracker; use crate::input::{ apply_libinput_settings, mods_with_finger_scroll_binds, mods_with_mouse_binds, @@ -348,6 +349,7 @@ pub struct Niri { pub notified_activity_this_iteration: bool, pub tablet_cursor_location: Option<Point<f64, Logical>>, pub gesture_swipe_3f_cumulative: Option<(f64, f64)>, + pub overview_scroll_swipe_gesture: ScrollSwipeGesture, pub vertical_wheel_tracker: ScrollTracker, pub horizontal_wheel_tracker: ScrollTracker, pub mods_with_mouse_binds: HashSet<Modifiers>, @@ -2427,6 +2429,7 @@ impl Niri { notified_activity_this_iteration: false, tablet_cursor_location: None, gesture_swipe_3f_cumulative: None, + overview_scroll_swipe_gesture: ScrollSwipeGesture::new(), vertical_wheel_tracker: ScrollTracker::new(120), horizontal_wheel_tracker: ScrollTracker::new(120), mods_with_mouse_binds, |
