diff options
author | Julien Cristau <jcristau@debian.org> | 2009-01-11 08:42:57 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2009-01-11 08:54:12 +0100 |
commit | 46f3c1b937002f9a860878b359dcf5756a82dcf2 (patch) | |
tree | 583122613a7390b065dde0fc0b10ab0bbe4ed0fe /mi/mipointer.c | |
parent | 5aa9483d3ee306a79a9235610ce6b2754d697585 (diff) |
mi: don't mix declarations and code
Diffstat (limited to 'mi/mipointer.c')
-rw-r--r-- | mi/mipointer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mi/mipointer.c b/mi/mipointer.c index be1895654..4358759cc 100644 --- a/mi/mipointer.c +++ b/mi/mipointer.c @@ -284,10 +284,11 @@ miPointerDeviceInitialize(DeviceIntPtr pDev, ScreenPtr pScreen) static void miPointerDeviceCleanup(DeviceIntPtr pDev, ScreenPtr pScreen) { + SetupScreen(pScreen); + if (!pDev->isMaster && pDev->u.master) return; - SetupScreen(pScreen); (*pScreenPriv->spriteFuncs->DeviceCursorCleanup)(pDev, pScreen); xfree(dixLookupPrivate(&pDev->devPrivates, miPointerPrivKey)); dixSetPrivate(&pDev->devPrivates, miPointerPrivKey, NULL); @@ -302,8 +303,8 @@ miPointerWarpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y) miPointerPtr pPointer; BOOL changedScreen = FALSE; - pPointer = MIPOINTER(pDev); SetupScreen (pScreen); + pPointer = MIPOINTER(pDev); if (pPointer->pScreen != pScreen) { |