damage: minor code formatting cleanups

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-07-09 10:17:00 +02:00
parent a79dd9b264
commit 659b1dfa00

View File

@ -96,13 +96,12 @@ DamageExtNotify(DamageExtPtr pDamageExt, BoxPtr pBoxes, int nBoxes)
{ {
ClientPtr pClient = pDamageExt->pClient; ClientPtr pClient = pDamageExt->pClient;
DrawablePtr pDrawable = pDamageExt->pDrawable; DrawablePtr pDrawable = pDamageExt->pDrawable;
xDamageNotifyEvent ev;
int i, x, y, w, h; int i, x, y, w, h;
damageGetGeometry(pDrawable, &x, &y, &w, &h); damageGetGeometry(pDrawable, &x, &y, &w, &h);
UpdateCurrentTimeIf(); UpdateCurrentTimeIf();
ev = (xDamageNotifyEvent) { xDamageNotifyEvent ev = {
.type = DamageEventBase + XDamageNotify, .type = DamageEventBase + XDamageNotify,
.level = pDamageExt->level, .level = pDamageExt->level,
.drawable = pDamageExt->drawable, .drawable = pDamageExt->drawable,
@ -184,7 +183,6 @@ ProcDamageQueryVersion(ClientPtr client)
xDamageQueryVersionReply rep = { xDamageQueryVersionReply rep = {
.type = X_Reply, .type = X_Reply,
.sequenceNumber = client->sequence, .sequenceNumber = client->sequence,
.length = 0
}; };
REQUEST(xDamageQueryVersionReq); REQUEST(xDamageQueryVersionReq);