From cb419b36e3d56c2540dd45af1bcd11e1f1884478 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sun, 14 Dec 2025 18:32:45 +0100 Subject: [PATCH] wl_surface: find_tree: fix subsurface offset --- src/ifs/wl_surface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifs/wl_surface.rs b/src/ifs/wl_surface.rs index bde99176..99c6c27b 100644 --- a/src/ifs/wl_surface.rs +++ b/src/ifs/wl_surface.rs @@ -1594,7 +1594,7 @@ impl WlSurface { let ext = child.sub_surface.surface.extents.get(); let ext = ext.move_(pos.0, pos.1); if ext.contains(x, y) { - let (x, y) = ext.translate(x, y); + let (x, y) = (x - pos.0, y - pos.1); if let Some(res) = child.sub_surface.surface.find_surface_at(x, y) { return Some(res); }