weston_xkb_info: Cache all modifier indices for X11
authorDaniel Stone <daniel@fooishbar.org>
Fri, 22 Jun 2012 12:21:33 +0000 (13:21 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Jun 2012 15:52:06 +0000 (11:52 -0400)
commitabb9dcdd1fc7431c191d3fc3987bb50d97e673f6
treef1ebf38b9807caa68fff5b758be40bc4b30cf737
parentef17267d38d3b944c4647d44a5a2d5a346db27b5
weston_xkb_info: Cache all modifier indices for X11

X11 has a set of eight modifiers which we want to represent.  Cache
their indices when we create a weston_xkb_info, so we can use this from
compositor-x11 to keep the state synchronised exactly between the host X
server and a nested Weston instance.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/compositor.c
src/compositor.h