mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user