damage: Remove the 'damage window' resource type.
Note that the existing code never actually creates a resource of this type, so it can't possibly do anything. This is clearly meant to track window destruction and clean up any associated Damages, but that's already handled by miext/damage's DestroyWindow wrapper. Previous discussion: http://lists.freedesktop.org/archives/xorg-devel/2011-March/020847.html Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
e674815e0a
commit
8cce0cf4d3
|
@ -31,7 +31,6 @@
|
||||||
static unsigned char DamageReqCode;
|
static unsigned char DamageReqCode;
|
||||||
static int DamageEventBase;
|
static int DamageEventBase;
|
||||||
static RESTYPE DamageExtType;
|
static RESTYPE DamageExtType;
|
||||||
static RESTYPE DamageExtWinType;
|
|
||||||
|
|
||||||
static DevPrivateKeyRec DamageClientPrivateKeyRec;
|
static DevPrivateKeyRec DamageClientPrivateKeyRec;
|
||||||
|
|
||||||
|
@ -429,8 +428,6 @@ FreeDamageExt(pointer value, XID did)
|
||||||
* Get rid of the resource table entry hanging from the window id
|
* Get rid of the resource table entry hanging from the window id
|
||||||
*/
|
*/
|
||||||
pDamageExt->id = 0;
|
pDamageExt->id = 0;
|
||||||
if (WindowDrawable(pDamageExt->pDrawable->type))
|
|
||||||
FreeResourceByType(pDamageExt->pDrawable->id, DamageExtWinType, TRUE);
|
|
||||||
if (pDamageExt->pDamage) {
|
if (pDamageExt->pDamage) {
|
||||||
DamageUnregister(pDamageExt->pDrawable, pDamageExt->pDamage);
|
DamageUnregister(pDamageExt->pDrawable, pDamageExt->pDamage);
|
||||||
DamageDestroy(pDamageExt->pDamage);
|
DamageDestroy(pDamageExt->pDamage);
|
||||||
|
@ -439,16 +436,6 @@ FreeDamageExt(pointer value, XID did)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
FreeDamageExtWin(pointer value, XID wid)
|
|
||||||
{
|
|
||||||
DamageExtPtr pDamageExt = (DamageExtPtr) value;
|
|
||||||
|
|
||||||
if (pDamageExt->id)
|
|
||||||
FreeResource(pDamageExt->id, RT_NONE);
|
|
||||||
return Success;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
SDamageNotifyEvent(xDamageNotifyEvent * from, xDamageNotifyEvent * to)
|
SDamageNotifyEvent(xDamageNotifyEvent * from, xDamageNotifyEvent * to)
|
||||||
{
|
{
|
||||||
|
@ -479,10 +466,6 @@ DamageExtensionInit(void)
|
||||||
if (!DamageExtType)
|
if (!DamageExtType)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DamageExtWinType = CreateNewResourceType(FreeDamageExtWin, "DamageExtWin");
|
|
||||||
if (!DamageExtWinType)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (!dixRegisterPrivateKey
|
if (!dixRegisterPrivateKey
|
||||||
(&DamageClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(DamageClientRec)))
|
(&DamageClientPrivateKeyRec, PRIVATE_CLIENT, sizeof(DamageClientRec)))
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user