diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-08 08:32:42 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-08 08:32:42 +0400 |
| commit | d397375d574bc64fdc0ecb91daa267a2fedff4fe (patch) | |
| tree | cbd7915eada0842c225d3ec5c13672845744e7f4 /src/input.rs | |
| parent | cb3ba5105d980b95529086d44f90bd437383aa61 (diff) | |
| download | niri-d397375d574bc64fdc0ecb91daa267a2fedff4fe.tar.gz niri-d397375d574bc64fdc0ecb91daa267a2fedff4fe.tar.bz2 niri-d397375d574bc64fdc0ecb91daa267a2fedff4fe.zip | |
Move regular pointer to tablet pointer pos on proximity out
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs index cf2c59ba..300577be 100644 --- a/src/input.rs +++ b/src/input.rs @@ -701,6 +701,15 @@ impl State { } ProximityState::Out => { tool.proximity_out(event.time_msec()); + + // Move the mouse pointer here to avoid discontinuity. + // + // Plus, Wayland SDL2 currently warps the pointer into some weird + // location on proximity out, so this shuold help it a little. + if let Some(pos) = self.niri.tablet_cursor_location { + self.move_cursor(pos); + } + self.niri.tablet_cursor_location = None; } } |
