[PATCH] Xi: set xChangeDeviceControlReply.status to Success by default
Peter Hutterer
peter.hutterer at who-t.net
Thu Oct 11 20:51:32 PDT 2012
If the status is other than Success, the code will set it to the required
value.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Xi/chgdctl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Xi/chgdctl.c b/Xi/chgdctl.c
index d47a588..31d3a57 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) {
--
1.7.11.4
More information about the xorg-devel
mailing list