xorg: remove unused pointer values all over the server
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
49051355d4
commit
aa7096ca6f
|
@ -374,10 +374,7 @@ ProcXTestFakeInput(ClientPtr client)
|
|||
if (!dev->valuator)
|
||||
return BadDevice;
|
||||
|
||||
/* broken lib, XI events have root uninitialized */
|
||||
if (extension || ev->u.keyButtonPointer.root == None)
|
||||
root = GetCurrentRootWindow(dev);
|
||||
else
|
||||
if (!(extension || ev->u.keyButtonPointer.root == None))
|
||||
{
|
||||
rc = dixLookupWindow(&root, ev->u.keyButtonPointer.root,
|
||||
client, DixGetAttrAccess);
|
||||
|
|
|
@ -115,7 +115,7 @@ ProcXGetDeviceDontPropagateList(ClientPtr client)
|
|||
|
||||
if ((others = wOtherInputMasks(pWin)) != 0) {
|
||||
for (i = 0; i < EMASKSIZE; i++)
|
||||
tbuf = ClassFromMask(NULL, others->dontPropagateMask[i], i,
|
||||
ClassFromMask(NULL, others->dontPropagateMask[i], i,
|
||||
&count, COUNT);
|
||||
if (count) {
|
||||
rep.count = count;
|
||||
|
|
|
@ -118,13 +118,13 @@ ProcXGetSelectedExtensionEvents(ClientPtr client)
|
|||
if ((pOthers = wOtherInputMasks(pWin)) != 0) {
|
||||
for (others = pOthers->inputClients; others; others = others->next)
|
||||
for (i = 0; i < EMASKSIZE; i++)
|
||||
tclient = ClassFromMask(NULL, others->mask[i], i,
|
||||
ClassFromMask(NULL, others->mask[i], i,
|
||||
&rep.all_clients_count, COUNT);
|
||||
|
||||
for (others = pOthers->inputClients; others; others = others->next)
|
||||
if (SameClient(others, client)) {
|
||||
for (i = 0; i < EMASKSIZE; i++)
|
||||
tclient = ClassFromMask(NULL, others->mask[i], i,
|
||||
ClassFromMask(NULL, others->mask[i], i,
|
||||
&rep.this_client_count, COUNT);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@ xf86ModulelistFromConfig(pointer **optlist)
|
|||
}
|
||||
if (found == FALSE) {
|
||||
XF86LoadPtr ptr = (XF86LoadPtr)xf86configptr->conf_modules;
|
||||
ptr = xf86addNewLoadDirective(ptr, ModuleDefaults[i].name, XF86_LOAD_MODULE, ModuleDefaults[i].load_opt);
|
||||
xf86addNewLoadDirective(ptr, ModuleDefaults[i].name, XF86_LOAD_MODULE, ModuleDefaults[i].load_opt);
|
||||
xf86Msg(X_INFO, "\"%s\" will be loaded by default.\n", ModuleDefaults[i].name);
|
||||
}
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ xf86ModulelistFromConfig(pointer **optlist)
|
|||
for (i=0 ; ModuleDefaults[i].name != NULL ; i++) {
|
||||
if (ModuleDefaults[i].toLoad == TRUE) {
|
||||
XF86LoadPtr ptr = (XF86LoadPtr)xf86configptr->conf_modules;
|
||||
ptr = xf86addNewLoadDirective(ptr, ModuleDefaults[i].name, XF86_LOAD_MODULE, ModuleDefaults[i].load_opt);
|
||||
xf86addNewLoadDirective(ptr, ModuleDefaults[i].name, XF86_LOAD_MODULE, ModuleDefaults[i].load_opt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -397,7 +397,6 @@ Bool
|
|||
miDCPutUpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor,
|
||||
int x, int y, unsigned long source, unsigned long mask)
|
||||
{
|
||||
miDCScreenPtr pScreenPriv;
|
||||
miDCCursorPtr pPriv;
|
||||
miDCBufferPtr pBuffer;
|
||||
WindowPtr pWin;
|
||||
|
@ -410,8 +409,7 @@ miDCPutUpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor,
|
|||
if (!pPriv)
|
||||
return FALSE;
|
||||
}
|
||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
||||
miDCScreenKey);
|
||||
|
||||
pWin = pScreen->root;
|
||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||
|
||||
|
@ -444,14 +442,11 @@ Bool
|
|||
miDCSaveUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
||||
int x, int y, int w, int h)
|
||||
{
|
||||
miDCScreenPtr pScreenPriv;
|
||||
miDCBufferPtr pBuffer;
|
||||
PixmapPtr pSave;
|
||||
WindowPtr pWin;
|
||||
GCPtr pGC;
|
||||
|
||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
||||
miDCScreenKey);
|
||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||
|
||||
pSave = pBuffer->pSave;
|
||||
|
@ -478,14 +473,11 @@ Bool
|
|||
miDCRestoreUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
||||
int x, int y, int w, int h)
|
||||
{
|
||||
miDCScreenPtr pScreenPriv;
|
||||
miDCBufferPtr pBuffer;
|
||||
PixmapPtr pSave;
|
||||
WindowPtr pWin;
|
||||
GCPtr pGC;
|
||||
|
||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
||||
miDCScreenKey);
|
||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||
pSave = pBuffer->pSave;
|
||||
|
||||
|
|
|
@ -602,7 +602,6 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, int *x, int *y)
|
|||
pScreen = newScreen;
|
||||
(*pScreenPriv->screenFuncs->NewEventScreen) (pDev, pScreen,
|
||||
FALSE);
|
||||
pScreenPriv = GetScreenPrivate (pScreen);
|
||||
/* Smash the confine to the new screen */
|
||||
pPointer->limits.x2 = pScreen->width;
|
||||
pPointer->limits.y2 = pScreen->height;
|
||||
|
|
|
@ -757,13 +757,11 @@ ProcXFixesSetPictureClipRegion (ClientPtr client)
|
|||
PicturePtr pPicture;
|
||||
RegionPtr pRegion;
|
||||
ScreenPtr pScreen;
|
||||
PictureScreenPtr ps;
|
||||
REQUEST(xXFixesSetPictureClipRegionReq);
|
||||
|
||||
REQUEST_SIZE_MATCH (xXFixesSetPictureClipRegionReq);
|
||||
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
||||
pScreen = pPicture->pDrawable->pScreen;
|
||||
ps = GetPictureScreen (pScreen);
|
||||
VERIFY_REGION_OR_NONE(pRegion, stuff->region, client, DixReadAccess);
|
||||
|
||||
return SetPictureClipRegion (pPicture, stuff->xOrigin, stuff->yOrigin,
|
||||
|
|
Loading…
Reference in New Issue