Skip to content

Commit

Permalink
doc: Declare keymap for wayland example
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bryceharrington authored and fooishbar committed Jun 21, 2016
1 parent 832e32d commit 094c8dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/quick-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 094c8dc

Please sign in to comment.