glzr-io / glazewm

GlazeWM is a tiling window manager for Windows inspired by i3 and Polybar.
GNU General Public License v3.0
4.02k stars 123 forks source link

[Feature request] Hide mouse cursor with cursor_follow_focus set as true #593

Open EdualcLaiv opened 2 months ago

EdualcLaiv commented 2 months ago

Having the cursor always at the center of the focused window is extremely handy, seeing the cursor jumping around is slightly distracting.

It would be nice to add the possibility to hide the cursor when following focus (since we always know where it should be) and un-hide it when manualy moved. It could be enabled and disabled in the config file with something like hide_following_cursor for example.

ptazithos commented 1 week ago

Sounds possible. There is an API there. nf-winuser-showcursor

I tried for a while. It only hides the cursor in the client area; the cursor still shows out of the window.

Create a transparent window on the top, set the mouse style, then bypass the event to target windows? Not sure.