summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorPeter Harris <pharris@opentext.com>2013-02-19 16:08:52 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2013-02-21 10:07:22 +1000
commite27b2e61632b220ddc36d0d0387581a9f4774f21 (patch)
treef3bb1df92e8739b1f7054766e2c4edf9f4df62e4 /xkb
parent3aac7a59dc6ef2d8bbf46ba5d37acdf6013e9450 (diff)
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>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkb.c1
1 files changed, 1 insertions, 0 deletions
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;
}