aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/render/animcur.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/render/animcur.c')
-rw-r--r--nx-X11/programs/Xserver/render/animcur.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/render/animcur.c b/nx-X11/programs/Xserver/render/animcur.c
index c5535050e..7cd6c8119 100644
--- a/nx-X11/programs/Xserver/render/animcur.c
+++ b/nx-X11/programs/Xserver/render/animcur.c
@@ -111,7 +111,7 @@ AnimCurSetCursorPosition (ScreenPtr pScreen,
Bool generateEvent);
static Bool
-AnimCurCloseScreen (int index, ScreenPtr pScreen)
+AnimCurCloseScreen (ScreenPtr pScreen)
{
AnimCurScreenPtr as = GetAnimCurScreen(pScreen);
Bool ret;
@@ -127,10 +127,10 @@ AnimCurCloseScreen (int index, ScreenPtr pScreen)
Unwrap(as, pScreen, UnrealizeCursor);
Unwrap(as, pScreen, RecolorCursor);
SetAnimCurScreen(pScreen,0);
- ret = (*pScreen->CloseScreen) (index, pScreen);
+ ret = (*pScreen->CloseScreen) (pScreen);
free (as);
- if (index == 0)
- AnimCurScreenPrivateIndex = -1;
+ if (screenInfo.numScreens <= 1)
+ AnimCurScreenPrivateIndex = -1;
return ret;
}