Under wayland, only mutter knows when a mouse button is clicked. This is true of key presses as well, and we can show the pointer with the ctrl key. Based on that precedent and using much of the existing code, I would like to contribute a feature than enables a new setting “Show pointer on mouse click”, which would use the existing animation to show the pointer on click of mouse button 1,2,3. This feature has not been accepted in the past. Primary historical arguments against adding this to mutter were “it’s an application responsibility”. However, that’s not easy under wayland. For instance, mouse clicks are not exposed to gnome shell, and they would be exposed to all extensions even if they were. It doesn’t seem (to me) like a big step from what’s already there, one more setting.
1 Like