From e27b2e61632b220ddc36d0d0387581a9f4774f21 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Tue, 19 Feb 2013 16:08:52 -0500 Subject: 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 Reviewed-by: Peter Hutterer Signed-off-by: Peter Hutterer --- xkb/xkb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xkb') diff --git a/xkb/xkb.c b/xkb/xkb.c index f2bcaee41..c78aceb78 100644 --- a/xkb/xkb.c +++ b/xkb/xkb.c @@ -3073,6 +3073,7 @@ XkbComputeGetIndicatorMapReplySize(XkbIndicatorPtr indicators, nIndicators++; } rep->length = (nIndicators * SIZEOF(xkbIndicatorMapWireDesc)) / 4; + rep->nIndicators = nIndicators; return Success; } -- cgit v1.2.3