New version of xfixes with client side cursor support

Keith Packard keithp at keithp.com
Fri Feb 16 17:00:08 PST 2007


On Fri, 2007-02-16 at 17:08 +0100, David Reveman wrote:
> attached are patches that adds functionality to the xfixes that
> compositing managers can use to render cursors on the client side.
> 
> Sprite position, cursor dimensions and hot spot location which could
> only be received using GetCursorImage request before have been added to
> the CursorNotify event so that a round trip isn't necessary for getting
> these properties. This means that CursorNotify events are now generated
> every time the sprite position changes. We can have the server not send
> more events than before to clients that don't support version 5 of
> xfixes if people are concerned about existing clients getting more
> events than before. I left this out of the patch for now as I don't
> think it's a major problem.

If you're changing functionality of existing extension requests, I'd
suggest just offering a way to ask for the new functionality, leaving
the existing bits in place.

> NameCursorPixmap request has been added and it can be used to get a
> pixmap which contains the current cursor bits.

Hmm. I see all kinds of ordering issues here, as cursors come and go
rapidly and clients respond asynchronously to those changes. Your
suggested request doesn't name a specific cursor, it just names the
*current* cursor, which may have nothing to do with the image you were
expecting to manipulate. What you want is to be able to talk about the
cursor which was displayed when you received notification.

No, I don't have a good plan here, I'm just suggesting that creating a
pixmap for a random cursor may not generate useful results.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20070216/99485c58/attachment.pgp>


More information about the xorg mailing list