Fix: improve edge pointer accuracy

This commit is contained in:
RipleyTom 2026-07-21 10:32:09 +02:00 • committed by Victoria Brekenfeld
parent 9789187416
commit 8955024bff
7 changed files with 43 additions and 32 deletions

View file

@ -785,7 +785,7 @@ impl Workspace {
location: Point<f64, Global>,
seat: &Seat<State>,
) -> Option<KeyboardFocusTarget> {
if !self.output.geometry().contains(location.to_i32_round()) {
if !self.output.geometry().contains(location.to_i32_floor()) {
return None;
}
let location = location.to_local(&self.output);
@ -834,7 +834,7 @@ impl Workspace {
location: Point<f64, Global>,
seat: &Seat<State>,
) -> Option<KeyboardFocusTarget> {
if !self.output.geometry().contains(location.to_i32_round()) {
if !self.output.geometry().contains(location.to_i32_floor()) {
return None;
}
let location = location.to_local(&self.output);
@ -884,7 +884,7 @@ impl Workspace {
overview: OverviewMode,
seat: &Seat<State>,
) -> Option<(PointerFocusTarget, Point<f64, Global>)> {
if !self.output.geometry().contains(location.to_i32_round()) {
if !self.output.geometry().contains(location.to_i32_floor()) {
return None;
}
let location = location.to_local(&self.output);
@ -934,7 +934,7 @@ impl Workspace {
overview: OverviewMode,
seat: &Seat<State>,
) -> Option<(PointerFocusTarget, Point<f64, Global>)> {
if !self.output.geometry().contains(location.to_i32_round()) {
if !self.output.geometry().contains(location.to_i32_floor()) {
return None;
}
let location = location.to_local(&self.output);