[Xcb] fonts and cursors

Jamey Sharp jamey at minilop.net
Wed Sep 13 10:07:24 PDT 2006


On Wed, Sep 13, 2006 at 10:38:51AM +0200, Vincent Torri wrote:
> Hey,

Hi Vincent!

My first answer would be that this seems like a good use for Plan 7: if
you make all three requests Checked and then call XCBRequestCheck on
each void cookie, you'll find out where the error occurred.

> XCBOpenFont (conn, font, strlen ("XC_hand1"), "XC_hand1");

I believe your bug is that no font exists named "XC_hand1":

~$ xlsfonts XC_\*
xlsfonts: pattern "XC_*" unmatched

According to Tronche, "X provides a set of standard cursor shapes in a
special font named cursor."

http://the-labs.com/X11/XLib-Manual/pixmap-and-cursor/XCreateFontCursor.html

~$ xlsfonts -l cursor
DIR  MIN  MAX EXIST DFLT PROP ASC DESC NAME
-->    0  153   all    0    9  16   17 cursor

Other than that, I don't see anything wrong with your code -- but then
I've never written cursor-using code for X. :-)

--Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060913/6fa01207/attachment.pgp


More information about the Xcb mailing list