Fix: improve edge pointer accuracy
This commit is contained in:
parent
9789187416
commit
8955024bff
7 changed files with 43 additions and 32 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue