swaywm / wlroots

A modular Wayland compositor library
https://gitlab.freedesktop.org/wlroots/wlroots/
MIT License
2.15k stars 343 forks source link

Cursor not deterministically clamped to output boundaries #2741

Open Xyene opened 3 years ago

Xyene commented 3 years ago

This seems to have something to do with rounding. To reproduce, start wev in Sway, initiate an implicit grab, and "push" the cursor into the bottom right corner of the screen.

wev reports:

[13:      wl_pointer] motion: time: 19988085; x, y: 1603.250000, 668.933594
[13:      wl_pointer] frame
[13:      wl_pointer] motion: time: 19988086; x, y: 1603.667969, 668.933594
[13:      wl_pointer] frame
[13:      wl_pointer] motion: time: 19988088; x, y: 1604.085938, 668.933594
[13:      wl_pointer] frame
[13:      wl_pointer] motion: time: 19988090; x, y: 1604.085938, 669.351562

And the cursor image will appear to jitter ±1px in place. This appears to happen on right and bottom output boundaries.


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2741

fwsmit commented 3 years ago

I've noticed this as well, while watching youtube in firefox. When moving the cursor to the side of the screen, sometimes it's not even above the firefox window anymore (as if the cursor left the window).