dix: XineramaConstrainCursor(): assign and declara variables 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-03 16:32:11 +02:00
committed by Enrico Weigelt
parent 06af052eb7
commit 7c114a30bc

View File

@@ -570,11 +570,8 @@ static void
XineramaConstrainCursor(DeviceIntPtr pDev)
{
SpritePtr pSprite = pDev->spriteInfo->sprite;
ScreenPtr pScreen;
BoxRec newBox;
pScreen = pSprite->screen;
newBox = pSprite->physLimits;
ScreenPtr pScreen = pSprite->screen;
BoxRec newBox = pSprite->physLimits;
/* Translate the constraining box to the screen
the sprite is actually on */