From 963ff14ed025eeb5d6785dbcd4c073251ef7a9e9 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 10 Feb 2025 13:11:50 +0300 Subject: Store hit type in PointContents --- src/input/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input') diff --git a/src/input/mod.rs b/src/input/mod.rs index 8abccd67..96e17bc2 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -2451,7 +2451,7 @@ impl State { if let Some(pos) = self.niri.tablet_cursor_location { let under = self.niri.contents_under(pos); - if let Some(window) = under.window { + if let Some((window, _)) = under.window { self.niri.layout.activate_window(&window); // FIXME: granular. @@ -2823,7 +2823,7 @@ impl State { let under = self.niri.contents_under(touch_location); if !handle.is_grabbed() { - if let Some(window) = under.window { + if let Some((window, _)) = under.window { self.niri.layout.activate_window(&window); // Check if we need to start an interactive move. -- cgit