Skip to content

Commit

Permalink
Fix #385
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Mar 27, 2024
1 parent cf75bc1 commit 5449858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shell/layout/floating/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ impl FloatingLayout {
}

res.and_then(|(element, space_offset)| {
let geometry = self.space.element_geometry(&element).unwrap().as_local();
let point = location - geometry.loc.to_f64();
let point = location - space_offset.to_f64();
element
.focus_under(point.as_logical())
.map(|(surface, surface_offset)| {
Expand Down

0 comments on commit 5449858

Please sign in to comment.