Hide the mouse cursor on display :0.0 in dual head mode

Olivier Fourdan fourdan at xfce.org
Sat Mar 10 10:30:45 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco Sinhoreli wrote:

> When I run the "xfwm4 --display=:0.1 --deamon" it set the mouse cursor 
> on Screen-VGA (display :0.1) and on Screen-TV (display:0.0). I don't 
> understanding because set the mouse on Screen-TV. Exist any way to hide 
> the mouse cursor on Screen-TV as in my case or will need of the development?

As far as I know, the only way to hide the mouse cursor is to create an
empty cursor. You can then use xsetroot to set this empty cursor as
default cursor on the selected screen.

Example follows:

1) Create a file called empty.xbm containing the empty cursor bits:

#define empty_width 1
#define empty_height 1
#define empty_x_hot 0
#define empty_y_hot 0
static unsigned char empty_bits[] = {
   0x01};


2) Use that cursor on the root window of the selected display:

xsetroot -display :0.0 -cursor empty.xbm empty.xbm

HTH
Cheers,
Olivier.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8nrFFHBtvh5LRUARAtjEAJ9+kV2zzN91awdunqmIL3NkeniRnQCg0m9y
4r+omhn4rMp6FABDcYvNp7Q=
=D/y6
-----END PGP SIGNATURE-----




More information about the Xfce4-dev mailing list