[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: Removing X Mouse Pointer/Cursor



On Thu, 19 Dec 2002, Dr Andrew C Aitchison wrote:
|>On Wed, 18 Dec 2002, Matt D. Robinson wrote:
|>> Thanks for any help you can provide,
|>
|>I guess you are using a touch-screen ?

A Compaq IA-1, actually, turning into a digital picture frame.
Having the cursor in the middle of the screen is a bad thing. :)
It has a wireless keyboard with integrated mouse, but I'm not
modifying the device to leave the wireless port on (so in effect,
the keyboard and mouse will no longer exist).

It's more a hack to see if it can be done.

|>What you should do is change to a cursor font which displays a blank 
|>cursor. You could do this in your app, or write a simple app that
|>has a blank cursor and a window that covers the whole background of
|>the screen.

After digging around a bit, this is what I did.  I made blank xbm
files for the cursor with mask, and just set it with:

	xsetroot -cursor none.xbm none.xbm.mask

none.xbm:

#define cursor_width 16
#define cursor_height 16
#define cursor_x_hot 1
#define cursor_y_hot 1
static unsigned char cursor_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

none.xbm.mask:

#define cursor_width 16
#define cursor_height 16
static unsigned char cursor_bits[] = {
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

It is a bit of a hack since the mouse is really still there, but at
least it isn't showing up anymore.

|>Although we now have the traditional cursors and the new red ones,
|>I don't know how you can set the default cursor family from XF86Config;
|>it is something I'd like to see before 4.3 is released
|>(it might be there, but I haven't found the documentation yet).

It would be nice if you could disable it altogether -- having the
start-up option allowMouseOpenFail is great, but making the mouse
non-existant, now that would be convenient (although I imagine it
would be difficult internal to the X server, since it's probably
a core intrinsic).

Thanks for the help from all, I appreciate it.

--Matt

_______________________________________________
Xpert mailing list
Xpert@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xpert




[XFree86]     [XFree86 Newbie]     [X.Org]     [Site Home]     [IETF Annouce]     [Security]     [Bugtraq]     [Share Pictures]     [Rubini]
[Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [XFree86 Forum]     [Linux Resources]

Powered by Linux