XCreatePixmapCursor stats a lot of files...

Glynn Clements glynn at gclements.plus.com
Thu Oct 4 11:41:58 PDT 2007


Lubos Lunak wrote:

> > Which apps are helped by this feature?
> 
>  Yours, if you use XCreatePixmapCursor? Or any other apps which still use it?

That's an odd definition of "helped".

If the application is calling XCreatePixmapCursor(), it's expecting
the cursor to be set to the specified pixmap, not some other pixmap. 
If the application wanted themed cursors, it would have called e.g. 
XcursorShapeLoadCursor().

This behaviour (theming, not the performance hit) is acceptable for
XCreateFontCursor(), as the exact correspondence between the "shape"
argument and the actual cursor is unspecified.

For the other two functions, the Xcursor hacks directly contradict the
functions' documented behaviour. That is known as a "bug" in computing
parlance.

They also constitute a regression, insofar as there is no longer *any*
mechanism by which an application can reliably set a specific cursor.

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list