[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cursor fonts ..............



Hello,

im trying to understand how does the cursor works in X.....


Why does the cursor changes its look when, i.e, changing from the root window (X-like cursor) to a application (arow cursor)? Does the app say X to change the cf (cursor font) from X to arrow and then when going back to the root window it says X to change it again?




Inside the file /usr/X11R6/include/X11/cursorfont.h are lines like this:

#define XC_X_cursor 0
#define XC_arrow 2

So i imagine the `application' says "ok, X, now you will change the cf from 0 to 2" and then X see cursorfont.h and think "yeah, i will change the cf to `arrow'", then X thinks again "acording to /usr/X11R6/lib/fonts/misc/cursor.pcf.gz i will draw this arrow"...

Is this true? cf works like this?

i guess not, becouse changing ```#define XC_X_cursor 0''' to ```#define XC_arrow 0''' dont change the X-cursor to an arrow... so how does it work?



I want to know this becouase i would like to change the default cursors to other ones... 

I have done xsetroot -cursor hi hi  , where hi is a file drawed  with bitmap, but this only change the root's cf (`X').

(btw, i can only draw black points... how do i draw whites ones? or better color ones?)

i have try to see the cf's, but `xfontsel -fn cursor.pcf' cannot open it...


How do i change the cursor for writing thinks (the default one) to a pen for example?



thanks, 


-----------------------------------------------------
 Phillip Neumann
filsin@bigfoot.com
-----------------------------------------------------





Reply to: