Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse cursor capture position slightly off in GNOME on Wayland #11636

Open
niconii opened this issue Dec 16, 2024 · 0 comments
Open

Mouse cursor capture position slightly off in GNOME on Wayland #11636

niconii opened this issue Dec 16, 2024 · 0 comments

Comments

@niconii
Copy link

niconii commented Dec 16, 2024

Operating System Info

Other

Other OS

Arch Linux

OBS Studio Version

30.2.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/Sn7vKsGiASj082cO

OBS Studio Crash Log URL

No response

Expected Behavior

I expected the cursor position in the video to match the actual cursor position on the screen.

Current Behavior

The mouse cursor is sometimes one pixel off on the X and/or Y axis.

Screenshot From 2024-12-15 18-08-17

Steps to Reproduce

  1. Capture a window using PipeWire on Wayland. (This behavior does not occur when using PipeWire or Xcomposite on Xorg.)
  2. Compare the position of the cursor in the video preview to the position on the screen.

Anything else we should know?

As far as I can tell, the mouse cursor position in OBS is being displayed rounded to the nearest pixel, while the mouse cursor position in GNOME is being floored. In other words, if the mouse position is (23.6, 11.9), OBS displays it at (24, 12), while GNOME displays it at (23, 11).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant