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

Cursor is almost always present #230

Open
zastrixarundell opened this issue Sep 29, 2024 · 2 comments
Open

Cursor is almost always present #230

zastrixarundell opened this issue Sep 29, 2024 · 2 comments

Comments

@zastrixarundell
Copy link

zastrixarundell commented Sep 29, 2024

Describe the bug
Considering you have multiple monitors, when a game is normally run and you open an game-menu and move to another monitor, the cursor will be shown on the last registered location. It will not disappear until you hover back.

Also in gamescope the cursor is basically always shown for me.

Screenshots or video

Gamescope:

gamescope

Gamescope gameplay will have the cursor almost a always shown, even when the game is focused and the cursor is hidden by the game.

obs-vkcapture and monitor capture side-by side: [ obs-vkcapture ][ pipewire ]

no-audio-eso.mp4

System (please complete the following information):

  • Flatpak: latest OBS and OBSvkcapture:
$ flatpak list | grep OBS
OBS Studio      com.obsproject.Studio   30.2.3  stable  flathub system
OBS VkCapture   com.obsproject.Studio.Plugin.OBSVkCapture       1.5.0   stable  flathub system
OBS VkCapture tools     org.freedesktop.Platform.VulkanLayer.OBSVkCapture       1.5.0   23.08   flathub system
@nowrep
Copy link
Owner

nowrep commented Sep 30, 2024

I think there's nothing to do because that's how XWayland works. It only has one "display" so if you move cursor outside the XWayland application it will stay on the border.

But maybe the positions directly on the border can be filtered out and cursor hidden in this case.

@zastrixarundell
Copy link
Author

Yeah, the cursor being hidden sound good. Maybe we can do something like this:

if  cursor_hidden_on_system 
    return hide cursor
    
if cursor_movement_diff > 1 and vkcapture_movement_diff == 0
    return hide_cursor

I'm not sure either how XWayland work but considering it's not showing on games which run on XWayland, I hope a solution is available.

Honestly I don't care that much about the cursor being shown when the window is unfocused, it's mostly an issue when it'll shown even if it's focused.

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

2 participants