aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-11 14:01:48 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-11 14:02:37 +0400
commitbc29256b9d95f265c8f6508e7949c57497835430 (patch)
treee8d7dd9c3a43e383fdc9f5fb6850f31e3e3078e6 /src/niri.rs
parentbeba87354a1fd30a95eaaf6c98eec72797e4baa7 (diff)
downloadniri-bc29256b9d95f265c8f6508e7949c57497835430.tar.gz
niri-bc29256b9d95f265c8f6508e7949c57497835430.tar.bz2
niri-bc29256b9d95f265c8f6508e7949c57497835430.zip
Implement Mod+MMB view offset gesture
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 8e907aac..6605cc79 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -233,7 +233,7 @@ pub struct Niri {
/// various tooltips from sticking around.
pub pointer_hidden: bool,
// FIXME: this should be able to be removed once PointerFocus takes grabs into accound.
- pub interactive_resize_ongoing: bool,
+ pub pointer_grab_ongoing: bool,
pub tablet_cursor_location: Option<Point<f64, Logical>>,
pub gesture_swipe_3f_cumulative: Option<(f64, f64)>,
pub vertical_wheel_tracker: ScrollTracker,
@@ -1504,7 +1504,7 @@ impl Niri {
dnd_icon: None,
pointer_focus: PointerFocus::default(),
pointer_hidden: false,
- interactive_resize_ongoing: false,
+ pointer_grab_ongoing: false,
tablet_cursor_location: None,
gesture_swipe_3f_cumulative: None,
vertical_wheel_tracker: ScrollTracker::new(120),
@@ -3667,7 +3667,7 @@ impl Niri {
let Some((surface, surface_loc)) = &new_under.surface else {
return;
};
- if self.interactive_resize_ongoing {
+ if self.pointer_grab_ongoing {
return;
}
let pointer = &self.seat.get_pointer().unwrap();