xf86Cursor: Fix xf86CurrentCursor to work on slave GPU Screens
The CurrentCursor is always attached to the master GPU. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
71fecc84e9
commit
b0b04cb266
|
@ -458,9 +458,12 @@ xf86ForceHWCursor(ScreenPtr pScreen, Bool on)
|
|||
CursorPtr
|
||||
xf86CurrentCursor(ScreenPtr pScreen)
|
||||
{
|
||||
xf86CursorScreenPtr ScreenPriv =
|
||||
(xf86CursorScreenPtr) dixLookupPrivate(&pScreen->devPrivates,
|
||||
xf86CursorScreenKey);
|
||||
xf86CursorScreenPtr ScreenPriv;
|
||||
|
||||
if (pScreen->is_output_slave)
|
||||
pScreen = pScreen->current_master;
|
||||
|
||||
ScreenPriv = dixLookupPrivate(&pScreen->devPrivates, xf86CursorScreenKey);
|
||||
return ScreenPriv->CurrentCursor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue