tiling: Fix missing cursor offset for window geometry
This commit is contained in:
parent
dcf1fce28a
commit
4695da04f9
1 changed files with 8 additions and 2 deletions
|
|
@ -3117,8 +3117,14 @@ impl TilingLayout {
|
|||
if !mapped.bbox().contains((location - geo.loc).as_logical()) {
|
||||
continue;
|
||||
}
|
||||
if mapped.is_in_input_region(&(location_f64 - geo.loc.to_f64()).as_logical()) {
|
||||
return Some((mapped.clone().into(), geo.loc));
|
||||
if mapped.is_in_input_region(
|
||||
&((location_f64 - geo.loc.to_f64()).as_logical()
|
||||
+ mapped.geometry().loc.to_f64()),
|
||||
) {
|
||||
return Some((
|
||||
mapped.clone().into(),
|
||||
geo.loc - mapped.geometry().loc.as_local(),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue