mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2025-02-05 20:46:27 +01:00
Fix pointer focus to layers on non-(0,0) outputs
This commit is contained in:
parent
6e3b1b4960
commit
17a3fc5a1a
1 changed files with 3 additions and 3 deletions
|
@ -218,9 +218,9 @@ impl Pinnacle {
|
|||
let layer_under =
|
||||
|layers: &[wlr_layer::Layer]| -> Option<(PointerFocusTarget, Point<i32, Logical>)> {
|
||||
let layer_map = layer_map_for_output(output);
|
||||
let layer = layers
|
||||
.iter()
|
||||
.find_map(|layer| layer_map.layer_under(*layer, point))?;
|
||||
let layer = layers.iter().find_map(|layer| {
|
||||
layer_map.layer_under(*layer, point - output_geo.loc.to_f64())
|
||||
})?;
|
||||
|
||||
let layer_loc = layer_map.layer_geometry(layer)?.loc;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue