Some applications display their own mouse pointers but they fail to hide the GNOME mouse pointer correctly. I'm trying to find a workaround higher in the system (in GNOME or X). Any ideas?

What doesn't help:

  • suggesting to fix the application in the first place
  • disabling mouse with xinput - I obviously want to use the mouse
  • using unclutter - doesn't work when I use the mouse
  • switching org.gnome.settings-daemon.plugins.coursor - plugin doesn't exist any more

I currently run Ubuntu GNOME 15.10 with GNOME 3.18.0 but the more generic solution, the better.


Still happy to accept a better answer!

What happens to work for my current issue - which is Unturned (free game on Steam):

Create a file named blank containing cursor and mask data (white space matters):

#define blank_width 1
#define blank_height 1
#define blank_x_hot 0
#define blank_y_hot 0
static unsigned char blank_bits[] = { 
    0x00 };

Load it with:

xsetroot -cursor blank blank

When finished, you can load the default cursor with:

xsetroot -cursor_name left_ptr
  • 1
    It isn't perfect by far. It just happens to work with Unturned in full screen but cursor still shows in other non-root windows (e.g. terminal, browser, etc. - it actually is perfect for this single case where I often do switch to these applications during gameplay but it's not good for more general purpose). – cprn Oct 7 '15 at 11:15
  • not working for me – Barbz_YHOOL Aug 20 '20 at 22:07
  • Yeah, after 5 years it might. It's a low level solution that works directly with Xserver. Probably still doable on Wayland, try the man pages. – cprn Aug 21 '20 at 17:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.