Skip to content

Commit

Permalink
Merge pull request #172 from pop-os/element-under-global
Browse files Browse the repository at this point in the history
Fix `TilingLayout::element_under` position with global workspaces
  • Loading branch information
ids1024 authored Sep 13, 2023
2 parents 82c7d65 + 5df26c2 commit af457ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shell/layout/tiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@ impl TilingLayout {
mapped.is_in_input_region(&test_point).then(|| {
(
mapped.clone().into(),
last_geometry.loc - output_data.location - mapped.geometry().loc,
last_geometry.loc + output_data.location - mapped.geometry().loc,
)
})
}
Expand Down Expand Up @@ -3086,7 +3086,8 @@ impl TilingLayout {
orientation,
}
.into(),
last_geometry.loc - output_data.location
last_geometry.loc
+ output_data.location
+ tree
.children(&id)
.unwrap()
Expand Down

0 comments on commit af457ef

Please sign in to comment.