-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Introduce MSG_CURSOR (VM to GUI) #7
Conversation
See QubesOS/qubes-gui-common#7. I use the Xfixes extension to subscribe to cursor change events. See SelectCursorInput and CursorNotify in the Xfixes specification: https://metacpan.org/pod/X11::Protocol::Ext::XFIXES The returned "cursor name" can be empty, and in general doesn't have to be meaningful. However, it practice the names are standard X11 "cursor font" names: https://tronche.com/gui/x/xlib/appendix/b/
I'm not too happy with |
In fact I think CURSOR_EMPTY is a risky thing to allow by default (if it does what I think it does - hides the cursor). It could be used to fool the user about the mouse position, potentially convincing the user to click on a specific thing outside of the VM's window. |
Sorry, it's |
One alternative would be to specify this default as 0, and shift the rest of cursor IDs (encode them as |
0 would be logical for "revert to default" indeed. I slightly more like |
See QubesOS/qubes-issues#1551. The message contains a cursor ID to be set for a given window.
Updated and tested (and I renamed the default one to |
See QubesOS/qubes-issues#1551.
The message contains a cursor ID to be set for a given window.