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

Add constants for hide and show cursor #13

Closed
wants to merge 1 commit into from

Conversation

iacore
Copy link

@iacore iacore commented Feb 25, 2022

No description provided.

#define CURSOR_DEFAULT 0
#define CURSOR_X11 0x0100 // use CURSOR_X11 + XC_* (from X11/cursorfont.h)
#define CURSOR_X11_MAX 0x019a // CURSOR_X11 + XC_num_glyphs
#define CURSOR_SHOW 0x1000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary? CURSOR_DEFAULT (or some other specific one) should show the cursor, no?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show and hide cursors (xfixes) are independent from setting the cursor shape (x11, no extension)

#define CURSOR_X11 0x0100 // use CURSOR_X11 + XC_* (from X11/cursorfont.h)
#define CURSOR_X11_MAX 0x019a // CURSOR_X11 + XC_num_glyphs
#define CURSOR_SHOW 0x1000
#define CURSOR_HIDE 0x2000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole 0x0000 - 0x00ff range is free for generic identifiers, you could use that as well (0x0001?).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically yes, but I want to reserve the last byte for actual cursor shapes, and second last byte for flags; we have 4 bytes to use

@iacore
Copy link
Author

iacore commented Mar 5, 2022

Closed for being impossible to implement. See QubesOS/qubes-issues#2676.

@iacore iacore closed this Mar 5, 2022
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.

2 participants