dix: XineramaSetCursorPosition() declare and initialize variable in one shot

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-04 19:16:51 +02:00
committed by Enrico Weigelt
parent a6854775b5
commit 79841c8293

View File

@@ -532,15 +532,13 @@ static void PostNewCursor(DeviceIntPtr pDev);
static Bool
XineramaSetCursorPosition(DeviceIntPtr pDev, int x, int y, Bool generateEvent)
{
ScreenPtr pScreen;
SpritePtr pSprite = pDev->spriteInfo->sprite;
ScreenPtr pScreen = pSprite->screen;
/* x,y are in Screen 0 coordinates. We need to decide what Screen
to send the message too and what the coordinates relative to
that screen are. */
pScreen = pSprite->screen;
ScreenPtr firstScreen = dixGetFirstScreenPtr();
x += firstScreen->x;
y += firstScreen->y;