Merge pull request #172 from pop-os/element-under-global

Fix `TilingLayout::element_under` position with global workspaces
This commit is contained in:
Ian Douglas Scott 2023-09-13 15:27:11 -07:00 committed by GitHub
commit af457ef723
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
)
})
}
@ -3086,7 +3086,8 @@ impl TilingLayout {
orientation,
}
.into(),
last_geometry.loc - output_data.location
last_geometry.loc
+ output_data.location
+ tree
.children(&id)
.unwrap()