r/SurfaceLinux • • 9h ago

Solved Surface Slim Pen 2 cursor solution for GNOME Wayland

I made a Mutter patch to hide the Surface Slim Pen cursor on GNOME Wayland

Hi everyone!

I've been working on a solution to an annoying issue when using the Surface Slim Pen on Linux: the mouse cursor following the pen around the screen.

After digging into GNOME Mutter and several rounds of testing, I managed to get it working!

Project: Invisible Pen Pointer

GitHub: https://github.com/SwedeNinja/invisible-pen-pointer

What it does

  • Hides the pen-associated mouse cursor.
  • Keeps pen input fully functional.
  • Leaves regular mouse and touchpad behavior untouched.

Tested on:

  • Surface Pro 8 + Slim Pen 2
  • Fedora 45
  • GNOME / Mutter 51.1
  • Wayland

The patch currently targets Mutter 51.1 and modifies four source files.

I'd love to hear from other Surface Linux users. Is this an issue you've experienced too? Would anyone be interested in testing it on other devices or Mutter versions?

My hope is that this could eventually find its way into GNOME/Mutter upstream or be adopted by the Linux Surface community.

I'm happy to help maintain and adapt the patch. The main goal is simply to make pen input on Linux better for everyone.

Feedback and suggestions are very welcome!

1 Upvotes

0 comments sorted by