[PATCH] xf86/cursor: Check hw cursor after xf86SeCursor() call, too

Keith Packard keithp at keithp.com
Thu Jul 17 11:09:19 PDT 2014


Takashi Iwai <tiwai at suse.de> writes:

> When a video driver changed the availability of hw cursor inside the
> xf86SetCursor() call, f86CursorSetCursor() still assumes the hw
> cursor and clears SWCursor flag of the screen unconditionally.  This
> results in the inconsistent state, typically the invisible cursor
> pointer.  For example, the problem is seen with modesetting driver
> with Cirrus or MGA KMS where the hw cursor isn't always available.
>
> This patch adds the check of availability of hw cursor again after the
> call of xf86SetCursor(), and proceeds only when it passes the test
> after the call.

This has been fixed with Michael Thayer's patch which has xf86SetCursor
return whether the hw cursor was enabled successfully.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140717/cb16abcf/attachment.sig>


More information about the xorg-devel mailing list