On Tue, 2003-02-04 at 00:04, Brandon Wright wrote:
> With my attempts at theming Xcursor I have run into a deadlock. No
> matter what themes I use or create, none of them correctly change
> left_ptr_watch. Instead, the theme will default onto the left_ptr_watch
> from whiteglass.
>
> I did notice that in xc/lib/Xcursor/library.c that left_ptr_watch seems
> to be missing from the array that contains the other defined cursors.
left_ptr_watch isn't a standard X cursor. Instead, the way it works
is that when Xlib gets a request to create a bitmap cursor, libXcursor
creates a hash value from the bits, and sees if there is a cursor
with that hash value as a name.
This hack allows libXcursor to theme custom bitmap cursors from
programs like Mozilla.
So, your theme needs a symlink:
[big long string of hex digts] => left_ptr_watch
see the existing themes for how the right name.
Regards,
Owen
[ There is an environment variable you can set to trace what the
cursors and hash values are that a program is creating, if
you want to figure it out the name for other bitmap cursors.
Search for getenv in the Xcursor sources ]
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel