aktau / hhpc

A small utility to hide the mouse pointer with X.org (X11)
76 stars 15 forks source link

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

Open amosbird opened 1 year ago

amosbird commented 1 year ago

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

copied-2023-03-16-22_45_05_165

aktau commented 1 year ago

Hmm, it would require another method of hiding the cursor. The current method relies on generating an empty cursor bitmap: https://github.com/aktau/hhpc/blob/e8803cd5c2b51f340fbb76c3ace87ad1c932161b/hhpc.c#L105-L115. 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.