diff --git a/hw/xnest/Cursor.c b/hw/xnest/Cursor.c index e48bd56d4..5fea4b84e 100644 --- a/hw/xnest/Cursor.c +++ b/hw/xnest/Cursor.c @@ -156,7 +156,7 @@ xnestDeviceCursorInitialize(DeviceIntPtr pDev, ScreenPtr pScreen) xnestCursorFuncPtr pScreenPriv; pScreenPriv = (xnestCursorFuncPtr) - dixLookupPrivate(&pScreen->devPrivates, &xnestCursorScreenKeyRec); + dixLookupPrivate(&pScreen->devPrivates, &xnestScreenCursorFuncKeyRec); return pScreenPriv->spriteFuncs->DeviceCursorInitialize(pDev, pScreen); } @@ -167,7 +167,7 @@ xnestDeviceCursorCleanup(DeviceIntPtr pDev, ScreenPtr pScreen) xnestCursorFuncPtr pScreenPriv; pScreenPriv = (xnestCursorFuncPtr) - dixLookupPrivate(&pScreen->devPrivates, &xnestCursorScreenKeyRec); + dixLookupPrivate(&pScreen->devPrivates, &xnestScreenCursorFuncKeyRec); pScreenPriv->spriteFuncs->DeviceCursorCleanup(pDev, pScreen); } diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index a078a8be3..8d61a8a67 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -44,7 +44,7 @@ is" without express or implied warranty. Window xnestDefaultWindows[MAXSCREENS]; Window xnestScreenSaverWindows[MAXSCREENS]; -DevPrivateKeyRec xnestCursorScreenKeyRec; +DevPrivateKeyRec xnestScreenCursorFuncKeyRec; ScreenPtr xnestScreen(Window window) @@ -155,7 +155,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) (&xnestColormapPrivateKeyRec, PRIVATE_COLORMAP, sizeof(xnestPrivColormap))) return FALSE; - if (!dixRegisterPrivateKey(&xnestCursorScreenKeyRec, PRIVATE_SCREEN, 0)) + if (!dixRegisterPrivateKey(&xnestScreenCursorFuncKeyRec, PRIVATE_SCREEN, 0)) return FALSE; visuals = xallocarray(xnestNumVisuals, sizeof(VisualRec)); @@ -312,7 +312,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) miDCInitialize(pScreen, &xnestPointerCursorFuncs); /* init SW rendering */ PointPriv = dixLookupPrivate(&pScreen->devPrivates, miPointerScreenKey); xnestCursorFuncs.spriteFuncs = PointPriv->spriteFuncs; - dixSetPrivate(&pScreen->devPrivates, &xnestCursorScreenKeyRec, + dixSetPrivate(&pScreen->devPrivates, &xnestScreenCursorFuncKeyRec, &xnestCursorFuncs); PointPriv->spriteFuncs = &xnestPointerSpriteFuncs; diff --git a/hw/xnest/XNCursor.h b/hw/xnest/XNCursor.h index ca4225529..f2860a95e 100644 --- a/hw/xnest/XNCursor.h +++ b/hw/xnest/XNCursor.h @@ -21,7 +21,9 @@ typedef struct { miPointerSpriteFuncPtr spriteFuncs; } xnestCursorFuncRec, *xnestCursorFuncPtr; -extern DevPrivateKeyRec xnestCursorScreenKeyRec; +// stores xnestCursorFuncRec in screen +extern DevPrivateKeyRec xnestScreenCursorFuncKeyRec; + extern xnestCursorFuncRec xnestCursorFuncs; typedef struct {