summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-10-12 13:48:27 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-10-29 13:15:50 +1000
commit3018f9c1e5109680dcf69b8f2d7807696a473bde (patch)
tree43cd54bbd49b0da0d76a1fc7f1e036c2336d8587 /Xi
parent2decff6393a44b56d80d53570718f95354fde454 (diff)
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>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/chgdctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xi/chgdctl.c b/Xi/chgdctl.c
index 9fe69a5ad..7daf58461 100644
--- a/Xi/chgdctl.c
+++ b/Xi/chgdctl.c
@@ -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) {