xserver/hw/xfree86/modes
Keith Packard f5670b4a7e xfree86: Set xf86CrtcConfigRec cursor pointer to NULL in HideCursor
This makes the cursor pointer held by xf86Cursors.c get reset to NULL
whenever the cursor isn't displayed, and means that the reference
count held in xf86Cursor.c is sufficient to cover the reference in
xf86Cursors.c.

As HideCursor may be called in the cursor loading path after
UseHWCursor or UseHWCursorARGB when HARDWARE_CURSOR_UPDATE_UNHIDDEN
isn't set in the Flags field, the setting of the cursor pointer had to
be moved to the LoadCursor paths.

LoadCursorARGBCheck gets the cursor pointer, but LoadCursorImageCheck
does not. For LoadCursorImageCheck, I added a new function,
xf86CurrentCursor, which returns the current cursor. With this new
function, we can eliminate the cursor pointer from the
xf86CrtcConfigRec, once drivers are converted over to use it.

Signed-off-by: Keith Packard <keithp@keithp.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-05-26 09:13:20 -07:00
..
Makefile.am xfree86: Remove DisplayID support 2014-09-26 15:27:18 -04:00
xf86Crtc.c xf86Crtc: don't set the root window property on slave GPUs. 2016-05-04 15:33:10 -04:00
xf86Crtc.h xfree86: Return NULL from xf86CompatOutput if no compat_output is defined 2015-05-07 14:01:57 -04:00
xf86Cursors.c xfree86: Set xf86CrtcConfigRec cursor pointer to NULL in HideCursor 2016-05-26 09:13:20 -07:00
xf86DiDGA.c Convert hw/xfree86 to new *allocarray functions 2015-04-21 16:58:08 -07:00
xf86EdidModes.c xfree86: Fix the 1792x1344-75 EST III mode 2015-09-23 13:18:22 -04:00
xf86Modes.c xfree86 warning reduction 2014-01-12 10:14:49 -08:00
xf86Modes.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86RandR12.c dix: Add hybrid full-size/empty-clip mode to SetRootClip 2016-02-22 13:26:31 -05:00
xf86RandR12.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86Rotate.c prime: add rotation support for offloaded outputs (v2) 2015-07-08 11:13:09 -07:00
xf86cvt.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86gtf.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00