-
Notifications
You must be signed in to change notification settings - Fork 71
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
hide cursor #299
Comments
I have a (admittedly janky) solution to hiding the cursor, which is just removing or hiding Outside of that hack, or this patch, I don't believe |
Thanks for the tip! I also noticed setting the I ultimately ended up replacing all the themes with the above mentioned to get it to work, but I like the inaccessible path approach better frankly. I'll try that and see if it takes effect. |
|
Hmm, you're right. Ironically, I was assuming a cursor package I installed was what allowed me to see a cursor in EDIT: Okay, so |
If I remember correctly, if no pointer input is available no cursor should be displayed by Cage. Could you check the inputs seen by the compositor? |
How would I check the inputs? Sorry for the ignorance, don’t really know what I am doing as it relates to the compositor :( Based on my ignorant reading of the relevant PR my understanding was that if a touch device is found it hides the cursor. Subtly different from no pointer devices found (which should be my case). But even if a pointer device is present I prefer to make it disappear after a certain inactivity timeout. When I was messing with sway it had setting of this nature (which incidentally didn’t work when set in the config file but did work if I sent a swaymsg). Regarding the cursor env vars, those variables are actually explicitly called out in the docs as supported so we probably want to update the docs if indeed they are ignored. |
From what I understand, they should already be supported, but only if you're using hardware cursors (although I've never figured out how to fix the |
Though to answer your question, run |
Maybe this is why it still shows up for me even if I don't have a keyboard/mouse plugged in?
Seems odd an hdmi device is a keyboard and a pointer but I suppose it's something to do with cec? |
This pointer device should be exactly why a cursor is displayed: here in the code. HDMI-CEC seems to be a good explanation. |
Thanks for looking that up! I think the transparent cursor is the better option in my case as someone may have a mouse plugged in etc. That should work perfectly well until a proper inactivity or similar solution is available. I think the current logic (as I understand it) is sound:
additionally the 3rd bit would be:
As an interim solution, maybe it would be possible currently to default the position to the upper left corner or something instead of sitting dead center of the content area. Would at least make it a little less noticeable. |
Current logic is quite "simple". If any input device has pointer capability, show the cursor. If not, do not show any cursor. This is how I understand it. |
Yeah, would be good to understand why the env vars don't seem to be working. For example setting the cursor path to /dev/null would be cleaner than replacing all cursors...or even setting the theme properly would be great as well. Perhaps I have something messed up on my end preventing those from working as desired? |
Here are two possible solutions with udev:
|
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. So it would be nice if cage could use the same logic for displaying the cursor as weston does. |
I have searched and can't seem to find much beyond the 'hidden cursor when touchscreen present' PR. I'm using an rpi3 trying to create a view-only display (launching chromium with debug port allowing for remote control of the browser). In principle everything seems to be working correctly but I cannot figure out how to make the cursor disappear from dead center of the screen. I have no keyboard/mouse connected and would prefer to make the cursor disappear disappear initially and/or after a period of inactivity.
Is this possible currently?
The text was updated successfully, but these errors were encountered: