shell: Correctly handle window geometry

This commit is contained in:
Victoria Brekenfeld 2022-10-24 14:05:36 +02:00
parent 1eb5d1e64f
commit f59bb8a06e
3 changed files with 9 additions and 6 deletions

View file

@ -128,10 +128,10 @@ impl Workspace {
.element_under(location)
.or_else(|| {
self.tiling_layer.mapped().find_map(|(_, mapped, loc)| {
let test_point = location - loc.to_f64();
let test_point = location - loc.to_f64() + mapped.geometry().loc.to_f64();
mapped
.is_in_input_region(&test_point)
.then_some((mapped, loc))
.then_some((mapped, loc - mapped.geometry().loc))
})
})
}