Xi: set xChangeDeviceControlReply.status to Success by default

If the status is other than Success, the code will set it to the required
value.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Peter Hutterer 2012-10-12 13:48:27 +10:00
parent 2decff6393
commit 3018f9c1e5

View File

@ -126,7 +126,8 @@ ProcXChangeDeviceControl(ClientPtr client)
.repType = X_Reply,
.RepType = X_ChangeDeviceControl,
.sequenceNumber = client->sequence,
.length = 0
.length = 0,
.status = Success,
};
switch (stuff->control) {