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

Force hiding cursor #235

Closed
JeanPhilippeLebel opened this issue Apr 22, 2022 · 1 comment
Closed

Force hiding cursor #235

JeanPhilippeLebel opened this issue Apr 22, 2022 · 1 comment

Comments

@JeanPhilippeLebel
Copy link

Hi all,

I'm running a Raspberry Pi 4 with the official 7inch display+touch. The OS is based on Yocto with Meta-wayland (provides Cage 0.14) and meta-raspberrypi.

The cursor always appears in the center of the screen even if there is no mouse connected. I've read the previous discussion about hiding the cursor.

I'm in a situation where I need to hide the cursor always even if there is a mouse connected.

I tried modifying the code code but the cursor is always there.

  1. In cage.c, set the cursor outside the screen with the call to wlr_crusor_warp (instead of placing the cursor to center of the screen)

  2. in seat.c, removed the check for caps & WL_SEAT_CAPABILITY_POINTER and call wlr_cursor_set_image(seat->cursor, NULL, 0, 0, 0, 0, 0, 0) directly.

What would be the best way to always hide the cursor?

Thanks

@JeanPhilippeLebel
Copy link
Author

Well, moving the cursor to

wlr_cursor_warp(server.seat->cursor, NULL, layout_box->width * 0.9999, layout_box->height * 0.99999 );

seems to the the trick.

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