compositor-x11: properly initialize XKB extension
authorRan Benita <ran234@gmail.com>
Wed, 31 Oct 2012 18:14:57 +0000 (20:14 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 1 Nov 2012 15:13:35 +0000 (11:13 -0400)
commit6a39d8790ec6d26c17778547ce66e94c1bc73032
treed40eba95d1850283a5eedbb3dd2775c44c2f0164
parent7b5e3cd9b1b79929d796be804661680f6dc7f5b4
compositor-x11: properly initialize XKB extension

In order to use XKB capabilities (as we do), the client must issue an
XkbUseExtension request:
http://www.x.org/releases/current/doc/kbproto/xkbproto.html#Initializing_the_X_Keyboard_Extension

The reason this succeeds currently is that XOpenDisplay from Xlib does
this for us. But it is better not to rely on that, but do it explicitly
in XCB with the rest of the XKB init sequence.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/compositor-x11.c