Hide the mouse cursor on display :0.0 in dual head mode
Olivier Fourdan
fourdan at xfce.org
Sat Mar 10 10:36:14 CET 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Olivier Fourdan wrote:
> 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};
Actually, it should be 0x00, not 0x01 otherwise the cursor is a visible
1x1 black pixel...
So the correct empty.xbm file should contain:
#define empty_width 1
#define empty_height 1
#define empty_x_hot 0
#define empty_y_hot 0
static unsigned char empty_bits[] = {
0x00};
And then use the given xsetroot command
xsetroot -display :0.0 -cursor empty.xbm empty.xbm
Cheers,
Olivier.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF8nwOFHBtvh5LRUARAm6/AJ0ZpfWfiNpFhsBAbE65e+5nggIF5wCgu7/3
YNKwgaZfFl6gA8nNGCm6gJ8=
=44oF
-----END PGP SIGNATURE-----
More information about the Xfce4-dev
mailing list