-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support Cursor Shape #116
Comments
I got a PoC working, I'm forcing the cursor shape to crosshair otherwise it's indistinguishable: I'm destroying the cursor shape device when an unknown cursors which I think is correct? I find the documentation for
There's also no shape for |
What exactly is not working without this? |
This solves cursor mismatch and scaling issue e.g. #83, even ones that are the fault of clients, and it enables things like svg cursors (that support any size and don't take much disk space like Xcursor) for compositors. |
Oh, okay. That's fine. I just didn't know what the actual issue was. |
I tested listening to
CursorNotifyEvent
s, and for each one requestingGetCursorImageAndName
and printing the cursor name (theCursorNotifyEvent::name
atom orGetCursorName
seem a lot better but I couldn't figure out how to use either of them).It seems to work pretty well, testing the cursors gtk4-demo, it doesn't seem to work in some sizes and animated cursors seem to only report the cursor name on the first frame and then keep updating the cursor without a name, but for most situations it seems like it can work.
And we canActually this is not even necessary, we can just ignore the cursor Xwayland sets while we have a cursor shape.HideCursor
/ShowCursor
as needed to hide and fallback to client provided cursors.P.S. it would be nice to have a matrix room (or discord) for xwayland-satellite
The text was updated successfully, but these errors were encountered: