diff options
author | Michael Thayer <michael.thayer@oracle.com> | 2016-09-29 20:23:12 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-02-08 12:04:42 -0500 |
commit | c02f6a687c3d6bd0727322b055ee788f8fefa005 (patch) | |
tree | 92853ddcf489f5194e65fd1d16e22e28bad387e8 /xorg-server.pc.in | |
parent | 3ef16dfb9830bd6b41ae428f4f213ae0c35c1056 (diff) |
xfree86: Immediately handle failure to set HW cursor, v5
Based on v4 by Alexandre Courbot <acourbot@nvidia.com>
There is currently no reliable way to report failure to set a HW
cursor. Still such failures can happen if e.g. the MODE_CURSOR DRM
ioctl fails (which currently happens at least with modesetting on Tegra
for format incompatibility reasons).
As failures are currently handled by setting the HW cursor size to
(0,0), the fallback to SW cursor will not happen until the next time the
cursor changes and xf86CursorSetCursor() is called again. In the
meantime, the cursor will be invisible to the user.
This patch addresses that by adding _xf86CrtcFuncs::set_cursor_check and
_xf86CursorInfoRec::ShowCursorCheck hook variants that return booleans.
This allows to propagate errors up to xf86CursorSetCursor(), which can
then fall back to using the SW cursor immediately.
v5: Updated the patch to apply to current git HEAD, split up into two
patches (server and modesetting driver) and adjusted the code slightly
to match surrounding code. I also removed the new exported function
ShowCursorCheck(), as instead just changing ShowCursor() to return Bool
should not affect its current callers.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Michael Thayer <michael.thayer@oracle.com>
Diffstat (limited to 'xorg-server.pc.in')
0 files changed, 0 insertions, 0 deletions