mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: remove caching of drawables and graphics contexts. The security checks
simply bypass the cached values so they are unused.
This commit is contained in:
@@ -82,8 +82,6 @@ SOFTWARE.
|
||||
}
|
||||
|
||||
#define VALIDATE_DRAWABLE_AND_GC(drawID, pDraw, pGC, client)\
|
||||
if ((stuff->gc == INVALID) || (client->lastGCID != stuff->gc) ||\
|
||||
(client->lastDrawableID != drawID))\
|
||||
{\
|
||||
int rc;\
|
||||
rc = dixLookupDrawable(&(pDraw), drawID, client, M_ANY,\
|
||||
@@ -95,15 +93,6 @@ SOFTWARE.
|
||||
return rc;\
|
||||
if ((pGC->depth != pDraw->depth) || (pGC->pScreen != pDraw->pScreen))\
|
||||
return (BadMatch);\
|
||||
client->lastDrawable = pDraw;\
|
||||
client->lastDrawableID = drawID;\
|
||||
client->lastGC = pGC;\
|
||||
client->lastGCID = stuff->gc;\
|
||||
}\
|
||||
else\
|
||||
{\
|
||||
pGC = client->lastGC;\
|
||||
pDraw = client->lastDrawable;\
|
||||
}\
|
||||
if (pGC->serialNumber != pDraw->serialNumber)\
|
||||
ValidateGC(pDraw, pGC);
|
||||
@@ -160,8 +149,6 @@ extern void UpdateCurrentTimeIf(void);
|
||||
|
||||
extern void InitSelections(void);
|
||||
|
||||
extern void FlushClientCaches(XID /*id*/);
|
||||
|
||||
extern int dixDestroyPixmap(
|
||||
pointer /*value*/,
|
||||
XID /*pid*/);
|
||||
|
||||
Reference in New Issue
Block a user