Fix #385
This commit is contained in:
parent
cf75bc1952
commit
5449858e70
1 changed files with 1 additions and 2 deletions
|
|
@ -714,8 +714,7 @@ impl FloatingLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
res.and_then(|(element, space_offset)| {
|
res.and_then(|(element, space_offset)| {
|
||||||
let geometry = self.space.element_geometry(&element).unwrap().as_local();
|
let point = location - space_offset.to_f64();
|
||||||
let point = location - geometry.loc.to_f64();
|
|
||||||
element
|
element
|
||||||
.focus_under(point.as_logical())
|
.focus_under(point.as_logical())
|
||||||
.map(|(surface, surface_offset)| {
|
.map(|(surface, surface_offset)| {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue