mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt
parent
a6854775b5
commit
79841c8293
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user