jeffchannell / jiggle

Gnome extension that highlights the cursor position when the mouse is moved rapidly.
GNU General Public License v2.0
133 stars 27 forks source link

Hide original mouse cursor #8

Closed jeffchannell closed 4 years ago

jeffchannell commented 4 years ago

When active, the original cursor is still visible.

jeffchannell commented 4 years ago

So, this is turning out to be complex...

The only way to reliably hide the cursor is to stick a window in front of it. Otherwise, the window under the cursor shows whatever cursor is supposed to be there.

The only way I’ve managed to reliably hide the cursor across (almost) the whole screen is to run an entirely separate, transparent window with a blank cursor. It still shows up on the top bar (unless I full screen the window, which hides the top bar).

Hopefully, I can somehow accomplish one of two things:

These things seem similar but really it’s two different tasks. The first would be the best, but so far I can’t seem to hook a raw Gdk Window to the display (errors related to Clutter so I don’t know if this will ever work). The latter seems “easy” but losing the window once means a blocked UI.

jeffchannell commented 4 years ago

Branch “issue8” has been started to fix this, with the changes likely helping to also solve #9

I managed to get the window showing without calling out to a shell, so that’s a bonus for approval!

jeffchannell commented 4 years ago

Branch merged with testing.