From faeb18eb7eb20f15528f9c8004d843146ebc2a50 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 27 Jan 2009 15:40:31 +1000 Subject: Xext: rename shape's EventType to ShapeEventType to avoid name clashing. Signed-off-by: Peter Hutterer --- Xext/shape.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Xext/shape.c') diff --git a/Xext/shape.c b/Xext/shape.c index 8827a0274..fbf8f8c6d 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -95,7 +95,7 @@ static DISPATCH_PROC(SProcShapeSelectInput); #endif static int ShapeEventBase = 0; -static RESTYPE ClientType, EventType; /* resource types for event masks */ +static RESTYPE ClientType, ShapeEventType; /* resource types for event masks */ /* * each window has a list of clients requesting @@ -128,8 +128,8 @@ ShapeExtensionInit(void) ExtensionEntry *extEntry; ClientType = CreateNewResourceType(ShapeFreeClient); - EventType = CreateNewResourceType(ShapeFreeEvents); - if (ClientType && EventType && + ShapeEventType = CreateNewResourceType(ShapeFreeEvents); + if (ClientType && ShapeEventType && (extEntry = AddExtension(SHAPENAME, ShapeNumberEvents, 0, ProcShapeDispatch, SProcShapeDispatch, NULL, StandardMinorOpcode))) @@ -741,7 +741,7 @@ ShapeFreeClient (pointer data, XID id) pShapeEvent = (ShapeEventPtr) data; pWin = pShapeEvent->window; - pHead = (ShapeEventPtr *) LookupIDByType(pWin->drawable.id, EventType); + pHead = (ShapeEventPtr *) LookupIDByType(pWin->drawable.id, ShapeEventType); if (pHead) { pPrev = 0; for (pCur = *pHead; pCur && pCur != pShapeEvent; pCur=pCur->next) @@ -788,7 +788,7 @@ ProcShapeSelectInput (ClientPtr client) if (rc != Success) return rc; pHead = (ShapeEventPtr *)SecurityLookupIDByType(client, - pWin->drawable.id, EventType, DixWriteAccess); + pWin->drawable.id, ShapeEventType, DixWriteAccess); switch (stuff->enable) { case xTrue: if (pHead) { @@ -828,7 +828,7 @@ ProcShapeSelectInput (ClientPtr client) { pHead = xalloc (sizeof (ShapeEventPtr)); if (!pHead || - !AddResource (pWin->drawable.id, EventType, (pointer)pHead)) + !AddResource (pWin->drawable.id, ShapeEventType, (pointer)pHead)) { FreeResource (clientResource, RT_NONE); return BadAlloc; @@ -878,7 +878,7 @@ SendShapeNotify (WindowPtr pWin, int which) RegionPtr region; BYTE shaped; - pHead = (ShapeEventPtr *) LookupIDByType(pWin->drawable.id, EventType); + pHead = (ShapeEventPtr *) LookupIDByType(pWin->drawable.id, ShapeEventType); if (!pHead) return; switch (which) { @@ -957,7 +957,7 @@ ProcShapeInputSelected (ClientPtr client) if (rc != Success) return rc; pHead = (ShapeEventPtr *) SecurityLookupIDByType(client, - pWin->drawable.id, EventType, DixReadAccess); + pWin->drawable.id, ShapeEventType, DixReadAccess); enabled = xFalse; if (pHead) { for (pShapeEvent = *pHead; -- cgit v1.2.3