wl_surface: fix sub-surface extents filter
This commit is contained in:
parent
e2f31646f2
commit
6998e735e0
1 changed files with 4 additions and 2 deletions
|
|
@ -1516,8 +1516,10 @@ impl WlSurface {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let pos = child.sub_surface.position.get();
|
let pos = child.sub_surface.position.get();
|
||||||
if pos.contains(x, y) {
|
let ext = child.sub_surface.surface.extents.get();
|
||||||
let (x, y) = pos.translate(x, y);
|
let ext = ext.move_(pos.x1(), pos.y1());
|
||||||
|
if ext.contains(x, y) {
|
||||||
|
let (x, y) = ext.translate(x, y);
|
||||||
if let Some(res) = child.sub_surface.surface.find_surface_at(x, y) {
|
if let Some(res) = child.sub_surface.surface.find_surface_at(x, y) {
|
||||||
return Some(res);
|
return Some(res);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue