diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-03 08:50:17 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-11-03 08:50:17 +0300 |
| commit | 69e3edb5a3a97cc77eaf4df77590166c463e4373 (patch) | |
| tree | a95af1aefd19f75f82e0a5bde95c4b3888ad6a7d /src/input | |
| parent | d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537 (diff) | |
| download | niri-69e3edb5a3a97cc77eaf4df77590166c463e4373.tar.gz niri-69e3edb5a3a97cc77eaf4df77590166c463e4373.tar.bz2 niri-69e3edb5a3a97cc77eaf4df77590166c463e4373.zip | |
Rename surface_under_and_global_space() to contents_under()
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 315e5dfd..167c43cc 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1410,7 +1410,7 @@ impl State { self.niri.screenshot_ui.pointer_motion(point); } - let under = self.niri.surface_under_and_global_space(new_pos); + let under = self.niri.contents_under(new_pos); // Handle confined pointer. if let Some((focus_surface, region)) = pointer_confined { @@ -1509,7 +1509,7 @@ impl State { self.niri.screenshot_ui.pointer_motion(point); } - let under = self.niri.surface_under_and_global_space(pos); + let under = self.niri.contents_under(pos); self.niri.handle_focus_follows_mouse(&under); @@ -1929,7 +1929,7 @@ impl State { return; }; - let under = self.niri.surface_under_and_global_space(pos); + let under = self.niri.contents_under(pos); let tablet_seat = self.niri.seat.tablet_seat(); let tablet = tablet_seat.get_tablet(&TabletDescriptor::from(&event.device())); @@ -1981,7 +1981,7 @@ impl State { tool.tip_down(serial, event.time_msec()); if let Some(pos) = self.niri.tablet_cursor_location { - let under = self.niri.surface_under_and_global_space(pos); + let under = self.niri.contents_under(pos); if let Some(window) = under.window { self.niri.layout.activate_window(&window); @@ -2011,7 +2011,7 @@ impl State { return; }; - let under = self.niri.surface_under_and_global_space(pos); + let under = self.niri.contents_under(pos); let tablet_seat = self.niri.seat.tablet_seat(); let display_handle = self.niri.display_handle.clone(); @@ -2340,7 +2340,7 @@ impl State { return; }; - let under = self.niri.surface_under_and_global_space(touch_location); + let under = self.niri.contents_under(touch_location); if !handle.is_grabbed() { if let Some(window) = under.window { @@ -2393,7 +2393,7 @@ impl State { let Some(touch_location) = self.compute_touch_location(&evt) else { return; }; - let under = self.niri.surface_under_and_global_space(touch_location); + let under = self.niri.contents_under(touch_location); handle.motion( self, under.surface, |
