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
|
CursorPtr
|
||||||
xf86CurrentCursor(ScreenPtr pScreen)
|
xf86CurrentCursor(ScreenPtr pScreen)
|
||||||
{
|
{
|
||||||
xf86CursorScreenPtr ScreenPriv =
|
xf86CursorScreenPtr ScreenPriv;
|
||||||
(xf86CursorScreenPtr) dixLookupPrivate(&pScreen->devPrivates,
|
|
||||||
xf86CursorScreenKey);
|
if (pScreen->is_output_slave)
|
||||||
|
pScreen = pScreen->current_master;
|
||||||
|
|
||||||
|
ScreenPriv = dixLookupPrivate(&pScreen->devPrivates, xf86CursorScreenKey);
|
||||||
return ScreenPriv->CurrentCursor;
|
return ScreenPriv->CurrentCursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue