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)
|
if (!dev->valuator)
|
||||||
return BadDevice;
|
return BadDevice;
|
||||||
|
|
||||||
/* broken lib, XI events have root uninitialized */
|
if (!(extension || ev->u.keyButtonPointer.root == None))
|
||||||
if (extension || ev->u.keyButtonPointer.root == None)
|
|
||||||
root = GetCurrentRootWindow(dev);
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
rc = dixLookupWindow(&root, ev->u.keyButtonPointer.root,
|
rc = dixLookupWindow(&root, ev->u.keyButtonPointer.root,
|
||||||
client, DixGetAttrAccess);
|
client, DixGetAttrAccess);
|
||||||
|
|
|
@ -115,7 +115,7 @@ ProcXGetDeviceDontPropagateList(ClientPtr client)
|
||||||
|
|
||||||
if ((others = wOtherInputMasks(pWin)) != 0) {
|
if ((others = wOtherInputMasks(pWin)) != 0) {
|
||||||
for (i = 0; i < EMASKSIZE; i++)
|
for (i = 0; i < EMASKSIZE; i++)
|
||||||
tbuf = ClassFromMask(NULL, others->dontPropagateMask[i], i,
|
ClassFromMask(NULL, others->dontPropagateMask[i], i,
|
||||||
&count, COUNT);
|
&count, COUNT);
|
||||||
if (count) {
|
if (count) {
|
||||||
rep.count = count;
|
rep.count = count;
|
||||||
|
|
|
@ -118,13 +118,13 @@ ProcXGetSelectedExtensionEvents(ClientPtr client)
|
||||||
if ((pOthers = wOtherInputMasks(pWin)) != 0) {
|
if ((pOthers = wOtherInputMasks(pWin)) != 0) {
|
||||||
for (others = pOthers->inputClients; others; others = others->next)
|
for (others = pOthers->inputClients; others; others = others->next)
|
||||||
for (i = 0; i < EMASKSIZE; i++)
|
for (i = 0; i < EMASKSIZE; i++)
|
||||||
tclient = ClassFromMask(NULL, others->mask[i], i,
|
ClassFromMask(NULL, others->mask[i], i,
|
||||||
&rep.all_clients_count, COUNT);
|
&rep.all_clients_count, COUNT);
|
||||||
|
|
||||||
for (others = pOthers->inputClients; others; others = others->next)
|
for (others = pOthers->inputClients; others; others = others->next)
|
||||||
if (SameClient(others, client)) {
|
if (SameClient(others, client)) {
|
||||||
for (i = 0; i < EMASKSIZE; i++)
|
for (i = 0; i < EMASKSIZE; i++)
|
||||||
tclient = ClassFromMask(NULL, others->mask[i], i,
|
ClassFromMask(NULL, others->mask[i], i,
|
||||||
&rep.this_client_count, COUNT);
|
&rep.this_client_count, COUNT);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -309,7 +309,7 @@ xf86ModulelistFromConfig(pointer **optlist)
|
||||||
}
|
}
|
||||||
if (found == FALSE) {
|
if (found == FALSE) {
|
||||||
XF86LoadPtr ptr = (XF86LoadPtr)xf86configptr->conf_modules;
|
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);
|
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++) {
|
for (i=0 ; ModuleDefaults[i].name != NULL ; i++) {
|
||||||
if (ModuleDefaults[i].toLoad == TRUE) {
|
if (ModuleDefaults[i].toLoad == TRUE) {
|
||||||
XF86LoadPtr ptr = (XF86LoadPtr)xf86configptr->conf_modules;
|
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,
|
miDCPutUpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor,
|
||||||
int x, int y, unsigned long source, unsigned long mask)
|
int x, int y, unsigned long source, unsigned long mask)
|
||||||
{
|
{
|
||||||
miDCScreenPtr pScreenPriv;
|
|
||||||
miDCCursorPtr pPriv;
|
miDCCursorPtr pPriv;
|
||||||
miDCBufferPtr pBuffer;
|
miDCBufferPtr pBuffer;
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
|
@ -410,8 +409,7 @@ miDCPutUpCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor,
|
||||||
if (!pPriv)
|
if (!pPriv)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
|
||||||
miDCScreenKey);
|
|
||||||
pWin = pScreen->root;
|
pWin = pScreen->root;
|
||||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||||
|
|
||||||
|
@ -444,14 +442,11 @@ Bool
|
||||||
miDCSaveUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
miDCSaveUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
||||||
int x, int y, int w, int h)
|
int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
miDCScreenPtr pScreenPriv;
|
|
||||||
miDCBufferPtr pBuffer;
|
miDCBufferPtr pBuffer;
|
||||||
PixmapPtr pSave;
|
PixmapPtr pSave;
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
GCPtr pGC;
|
GCPtr pGC;
|
||||||
|
|
||||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
|
||||||
miDCScreenKey);
|
|
||||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||||
|
|
||||||
pSave = pBuffer->pSave;
|
pSave = pBuffer->pSave;
|
||||||
|
@ -478,14 +473,11 @@ Bool
|
||||||
miDCRestoreUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
miDCRestoreUnderCursor (DeviceIntPtr pDev, ScreenPtr pScreen,
|
||||||
int x, int y, int w, int h)
|
int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
miDCScreenPtr pScreenPriv;
|
|
||||||
miDCBufferPtr pBuffer;
|
miDCBufferPtr pBuffer;
|
||||||
PixmapPtr pSave;
|
PixmapPtr pSave;
|
||||||
WindowPtr pWin;
|
WindowPtr pWin;
|
||||||
GCPtr pGC;
|
GCPtr pGC;
|
||||||
|
|
||||||
pScreenPriv = (miDCScreenPtr)dixLookupPrivate(&pScreen->devPrivates,
|
|
||||||
miDCScreenKey);
|
|
||||||
pBuffer = miGetDCDevice(pDev, pScreen);
|
pBuffer = miGetDCDevice(pDev, pScreen);
|
||||||
pSave = pBuffer->pSave;
|
pSave = pBuffer->pSave;
|
||||||
|
|
||||||
|
|
|
@ -602,7 +602,6 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, int *x, int *y)
|
||||||
pScreen = newScreen;
|
pScreen = newScreen;
|
||||||
(*pScreenPriv->screenFuncs->NewEventScreen) (pDev, pScreen,
|
(*pScreenPriv->screenFuncs->NewEventScreen) (pDev, pScreen,
|
||||||
FALSE);
|
FALSE);
|
||||||
pScreenPriv = GetScreenPrivate (pScreen);
|
|
||||||
/* Smash the confine to the new screen */
|
/* Smash the confine to the new screen */
|
||||||
pPointer->limits.x2 = pScreen->width;
|
pPointer->limits.x2 = pScreen->width;
|
||||||
pPointer->limits.y2 = pScreen->height;
|
pPointer->limits.y2 = pScreen->height;
|
||||||
|
|
|
@ -757,13 +757,11 @@ ProcXFixesSetPictureClipRegion (ClientPtr client)
|
||||||
PicturePtr pPicture;
|
PicturePtr pPicture;
|
||||||
RegionPtr pRegion;
|
RegionPtr pRegion;
|
||||||
ScreenPtr pScreen;
|
ScreenPtr pScreen;
|
||||||
PictureScreenPtr ps;
|
|
||||||
REQUEST(xXFixesSetPictureClipRegionReq);
|
REQUEST(xXFixesSetPictureClipRegionReq);
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH (xXFixesSetPictureClipRegionReq);
|
REQUEST_SIZE_MATCH (xXFixesSetPictureClipRegionReq);
|
||||||
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
|
||||||
pScreen = pPicture->pDrawable->pScreen;
|
pScreen = pPicture->pDrawable->pScreen;
|
||||||
ps = GetPictureScreen (pScreen);
|
|
||||||
VERIFY_REGION_OR_NONE(pRegion, stuff->region, client, DixReadAccess);
|
VERIFY_REGION_OR_NONE(pRegion, stuff->region, client, DixReadAccess);
|
||||||
|
|
||||||
return SetPictureClipRegion (pPicture, stuff->xOrigin, stuff->yOrigin,
|
return SetPictureClipRegion (pPicture, stuff->xOrigin, stuff->yOrigin,
|
||||||
|
|
Loading…
Reference in New Issue