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

Is it possible to ignore cursor events when in hidden state? #16

Open
amosbird opened this issue Mar 16, 2023 · 1 comment
Open

Is it possible to ignore cursor events when in hidden state? #16

amosbird opened this issue Mar 16, 2023 · 1 comment

Comments

@amosbird
Copy link

Currently it interferes keyboard driven workflow such as the completion box in google:

copied-2023-03-16-22_45_05_165

@aktau
Copy link
Owner

aktau commented Mar 17, 2023

Hmm, it would require another method of hiding the cursor. The current method relies on generating an empty cursor bitmap:

hhpc/hhpc.c

Lines 105 to 115 in e8803cd

static Cursor nullCursor(Display *dpy, Drawable dw) {
XColor color = { 0 };
const char data[] = { 0 };
Pixmap pixmap = XCreateBitmapFromData(dpy, dw, data, 1, 1);
Cursor cursor = XCreatePixmapCursor(dpy, pixmap, pixmap, &color, &color, 0, 0);
XFreePixmap(dpy, pixmap);
return cursor;
}
. But that doesn't mean the cursor isn't there, as you've noticed. I'm not actually sure how this would be done. I did not write down all of the alternatives I've tried, but I think I decided that hhpc's method (based on hhp) was the most reliable for my use case. You may want to give unclutter a try.

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

2 participants