randr: Xi: use return value of X_SEND_REPLY_SIMPLE()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-17 11:30:35 +02:00
committed by Enrico Weigelt
parent e4e99bff2d
commit 5720e3d375

View File

@@ -690,11 +690,10 @@ sendout:
swapl(&rep.nItems);
}
X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
if (prop && stuff->delete && (rep.bytesAfter == 0)) { /* delete the Property */
*prev = prop->next;
RRDestroyOutputProperty(prop);
}
return Success;
return X_SEND_REPLY_WITH_RPCBUF(client, rep, rpcbuf);
}