shell: Correctly handle window geometry
This commit is contained in:
parent
1eb5d1e64f
commit
f59bb8a06e
3 changed files with 9 additions and 6 deletions
|
|
@ -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))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue