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

Command line option to hide cursor. #335

Closed
wants to merge 1 commit into from

Conversation

Hiers
Copy link

@Hiers Hiers commented May 5, 2024

Adds a command line option to hide the cursor, regardless if any pointer capable devices are available or not.

I have some peripherals plugged in that, for some reason, have the pointer capability available even if they can not control the mouse pointer. This is a quick fix for that. I'm not sure how niche this problem is, but there is an issue regarding an hdmi device with "pointer capabilities" that would be fixed by this PR.

Fixes #299.

P.S. update_capabilities and handle_request_set_cursor seem redundant in setting and unsetting the visibility of the cursor i.e. if you delete one or the other, nothing changes

@Hiers
Copy link
Author

Hiers commented May 5, 2024

BTW when I say delete one or the other, I mean the lines specific to wlr_cursor_unset_image, wlr_cursor_set_xcursor, and wlr_cursor_set_surface.

@emersion
Copy link
Contributor

emersion commented May 8, 2024

Maybe there's a better way to deal with this issue? e.g. by disabling the input device via udev?

@mnschipper
Copy link

Cage handles the cursor differently than Weston. When I start the same electron application with cage as compositor, there is a cursor in the center of the screen (although only a touch screen is connected, no mouse). When I start the application with weston as compositor, the cursor is NOT displayed.

@Hiers
Copy link
Author

Hiers commented May 8, 2024

Maybe there's a better way to deal with this issue? e.g. by disabling the input device via udev?

Note that I want to use this device. It's a flirc usb for controlling the machine using a remote. I just want to do this without having the pointer on screen but, for some reason, this IR receiver has pointer capabilities.

@emersion
Copy link
Contributor

emersion commented May 8, 2024

I've described possible solutions here: #299 (comment)

@Hiers
Copy link
Author

Hiers commented May 8, 2024

Thanks, then I'll close this PR.

@Hiers Hiers closed this May 8, 2024
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

Successfully merging this pull request may close these issues.

hide cursor
3 participants