1
0
Fork 0
forked from wry/wry

wl_surface: find_tree: fix subsurface offset

This commit is contained in:
Julian Orth 2025-12-14 18:32:45 +01:00
parent b328365043
commit cb419b36e3

View file

@ -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);
}