xkb: switch to byte counting functions
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
0dc11da575
commit
089c460058
|
@ -667,8 +667,8 @@ ProcXkbGetControls(ClientPtr client)
|
||||||
|
|
||||||
xkb = dev->key->xkbInfo->desc->ctrls;
|
xkb = dev->key->xkbInfo->desc->ctrls;
|
||||||
rep.type = X_Reply;
|
rep.type = X_Reply;
|
||||||
rep.length = (SIZEOF(xkbGetControlsReply)-
|
rep.length = bytes_to_int32(SIZEOF(xkbGetControlsReply)-
|
||||||
SIZEOF(xGenericReply)) >> 2;
|
SIZEOF(xGenericReply));
|
||||||
rep.sequenceNumber = client->sequence;
|
rep.sequenceNumber = client->sequence;
|
||||||
rep.deviceID = ((DeviceIntPtr)dev)->id;
|
rep.deviceID = ((DeviceIntPtr)dev)->id;
|
||||||
rep.numGroups = xkb->num_groups;
|
rep.numGroups = xkb->num_groups;
|
||||||
|
|
Loading…
Reference in New Issue