Re: Can I hide the cursor?

2003-08-14 Thread Egbert Eich
Matthew Allum writes:
  
  *but* if you use a libXcursor theme with every cursor icon fully
  transparent you can *really* get rid of the cursor, an app changing
  the cursors appearance just changes it to another 'invisible' cursor. 
  
  I've not seen this 'technique' discussed before. 
  

You can do so for the core cursor also by creating new cursor font
with blank glyphs. However if the application specifies it's own
cursor you're lost.

Egbert.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-14 Thread Andrew C Aitchison
On Wed, 6 Aug 2003, [gb2312]  tom wrote:

 I want to hide the cursor when I using touchscreen in XFree86 4.20,
 I found that this quesstion have been discussed three times,but no 
 answer.Then,does this means I can't hide the cursor at all?
 Can xsetroot resolve this problem?
 I tried but faild.I just can't change the cursor with it.

I think that X fundamentally requires that you have exactly one cursor.

You can however change the way it looks by changing the cursor font.
You can write a cursor font which has an invisible cursor, so the user 
will not see anything.
(I don't remember the syntax, but there several ways of changing 
cursor font).

The only problem I see with that is that any application can change the 
cursor font, and some applications use their own font, so you can't
guarantee that a cursor will never appear. However this will only happen
when such an application has focus, so should not be a major problem.

-- 
Andrew C Aitchison

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-14 Thread Mark Vojkovich
On Wed, 6 Aug 2003, [gb2312]  tom wrote:

 I want to hide the cursor when I using touchscreen in XFree86 4.20,I found that this 
 quesstion have been discussed three times,but no answer.Then,does this means I can't 
 hide the cursor at all?Can xsetroot resolve this problem?I tried but faild.I just 
 can't change the cursor with it.
 Any idea?
  
 Thank you.
  
 Roy

   This has been discussed and answered many times.  The answer is no.

1) X always must always have a cursor.

2) The cursor's appearence depends on the window it is over.

   You can change the root window cursor with xsetroot, and if another
   window doesn't specify a cursor, it inherits the cursor from it's
   parent.  If no parent all the way down to the root window has 
   specified a cursor then that window gets the root window cursor.
   But if windows have specified cursors explicitly, there's nothing
   you can do about that.


Mark.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-14 Thread Matthew Allum
on Wed, Aug 06, 2003 at 11:14:07AM -0700, Mark Vojkovich wrote:
This has been discussed and answered many times.  The answer is no.
 
 1) X always must always have a cursor.
 
 2) The cursor's appearence depends on the window it is over.
 
You can change the root window cursor with xsetroot, and if another
window doesn't specify a cursor, it inherits the cursor from it's
parent.  If no parent all the way down to the root window has 
specified a cursor then that window gets the root window cursor.
But if windows have specified cursors explicitly, there's nothing
you can do about that.
 

*but* if you use a libXcursor theme with every cursor icon fully
transparent you can *really* get rid of the cursor, an app changing
the cursors appearance just changes it to another 'invisible' cursor. 

I've not seen this 'technique' discussed before. 

  -- Matthew 
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-14 Thread Egbert Eich
Since this problem comes up quite frequently I have made an article
at:

http://xfree86.linuxwiki.org/AdvancedTopicsFAQ

about how to do this.

Egbert.

Andrew C Aitchison writes:
  On Wed, 6 Aug 2003, [gb2312]  tom wrote:
  
   I want to hide the cursor when I using touchscreen in XFree86 4.20,
   I found that this quesstion have been discussed three times,but no 
   answer.Then,does this means I can't hide the cursor at all?
   Can xsetroot resolve this problem?
   I tried but faild.I just can't change the cursor with it.
  
  I think that X fundamentally requires that you have exactly one cursor.
  
  You can however change the way it looks by changing the cursor font.
  You can write a cursor font which has an invisible cursor, so the user 
  will not see anything.
  (I don't remember the syntax, but there several ways of changing 
  cursor font).
  
  The only problem I see with that is that any application can change the 
  cursor font, and some applications use their own font, so you can't
  guarantee that a cursor will never appear. However this will only happen
  when such an application has focus, so should not be a major problem.
  
  -- 
  Andrew C Aitchison
  
  ___
  Devel mailing list
  [EMAIL PROTECTED]
  http://XFree86.Org/mailman/listinfo/devel
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-14 Thread Matthew Allum
If you use XFree 4.3 with libxcursor, you can create a completely
transparent cursor theme.

  -- Matthew

on Wed, Aug 06, 2003 at 02:21:35PM +0800,  tom wrote:
 I want to hide the cursor when I using touchscreen in XFree86 4.20,I found that this 
 quesstion have been discussed three times,but no answer.Then,does this means I can't 
 hide the cursor at all?Can xsetroot resolve this problem?I tried but faild.I just 
 can't change the cursor with it.
 Any idea?
  
 Thank you.
  
 Roy
 
 
 
 
 -
 Do You Yahoo!?
 ?? ??+???
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-07 Thread Andrew C Aitchison
On Wed, 6 Aug 2003, Matthew Allum wrote:

 *but* if you use a libXcursor theme with every cursor icon fully
 transparent you can *really* get rid of the cursor, an app changing
 the cursors appearance just changes it to another 'invisible' cursor. 

Might help, but applications can change themes as well as cursors.

Actually, in practise it would probably be good enough.

-- 
Andrew C Aitchison


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-07 Thread Alex Deucher
or use an empty pixmap for the old sytle cursors.

Alex

--- Matthew Allum [EMAIL PROTECTED] wrote:
 If you use XFree 4.3 with libxcursor, you can create a completely
 transparent cursor theme.
 
   -- Matthew
 
 on Wed, Aug 06, 2003 at 02:21:35PM +0800,  tom wrote:
  I want to hide the cursor when I using touchscreen in XFree86
 4.20,I found that this quesstion have been discussed three times,but
 no answer.Then,does this means I can't hide the cursor at all?Can
 xsetroot resolve this problem?I tried but faild.I just can't change
 the cursor with it.
  Any idea?
   
  Thank you.
   
  Roy
  
  
  
  
  -
  Do You Yahoo!?
  ?? ??+???
 ___
 Devel mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/devel


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Can I hide the cursor?

2003-08-06 Thread Mark Vojkovich
On Wed, 6 Aug 2003, Matthew Allum wrote:

 on Wed, Aug 06, 2003 at 11:14:07AM -0700, Mark Vojkovich wrote:
 This has been discussed and answered many times.  The answer is no.
  
  1) X always must always have a cursor.
  
  2) The cursor's appearence depends on the window it is over.
  
 You can change the root window cursor with xsetroot, and if another
 window doesn't specify a cursor, it inherits the cursor from it's
 parent.  If no parent all the way down to the root window has 
 specified a cursor then that window gets the root window cursor.
 But if windows have specified cursors explicitly, there's nothing
 you can do about that.
  
 
 *but* if you use a libXcursor theme with every cursor icon fully
 transparent you can *really* get rid of the cursor, an app changing
 the cursors appearance just changes it to another 'invisible' cursor. 
 
 I've not seen this 'technique' discussed before. 
 

   This will not be able to change the behavior of an app that
installs a custom cursor.


Mark.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel