doc: Declare keymap for wayland example

keymap was defined in the X11 example, but also define it in the wayland
example just to make it a bit more standalone

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
master
Bryce Harrington 2016-06-15 17:36:17 -07:00 committed by Daniel Stone
parent 832e32dc6c
commit 094c8dc59b
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ with a keymap. In this case, we can create the keymap object like this:
~~~{.c}
/* From the wl_keyboard::keymap event. */
const char *keymap_string = <...>;
struct xkb_keymap *keymap;
keymap = xkb_keymap_new_from_string(ctx, keymap_string,
XKB_KEYMAP_FORMAT_TEXT_V1,