Recently i stumbled upon the need to hide the mouse cursor when inactive. Unclutter works by hiding the X11 cursor and should work for all linux distributions with X as display server.
Install it from the repository or download it from the project’s website.
sudo apt-get install unclutter
Then just run it with
unclutter -idle 10
To get it to autorun just add it to your startup applications. I did this on Rasbian with LXDE desktop so we just edit the
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
and add a new line with
@unclutter -idle 10
Now the cursor will hide itself after 10 seconds of inactivity every time you log into your LXDE desktop!