diff options
author | Peter Harris <pharris@opentext.com> | 2013-02-19 16:08:52 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-02-21 10:07:22 +1000 |
commit | e27b2e61632b220ddc36d0d0387581a9f4774f21 (patch) | |
tree | f3bb1df92e8739b1f7054766e2c4edf9f4df62e4 /xkb | |
parent | 3aac7a59dc6ef2d8bbf46ba5d37acdf6013e9450 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3073,6 +3073,7 @@ XkbComputeGetIndicatorMapReplySize(XkbIndicatorPtr indicators, nIndicators++; } rep->length = (nIndicators * SIZEOF(xkbIndicatorMapWireDesc)) / 4; + rep->nIndicators = nIndicators; return Success; } |