xkb: Set nIndicators in XkbGetIndicatorMap
Xlib doesn't use this value (it computes it from the reply length instead) which is why nobody has noticed yet. But the spec http://www.x.org/releases/X11R7.7/doc/kbproto/xkbproto.html says that it should be set. Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3aac7a59dc
commit
e27b2e6163
|
@ -3073,6 +3073,7 @@ XkbComputeGetIndicatorMapReplySize(XkbIndicatorPtr indicators,
|
||||||
nIndicators++;
|
nIndicators++;
|
||||||
}
|
}
|
||||||
rep->length = (nIndicators * SIZEOF(xkbIndicatorMapWireDesc)) / 4;
|
rep->length = (nIndicators * SIZEOF(xkbIndicatorMapWireDesc)) / 4;
|
||||||
|
rep->nIndicators = nIndicators;
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue