swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit d44b1fe28395a9485827d48b977d1ae157ca9a10
parent 284cf407add35e6524bf34b53cb3c2a4111727dc
Author: Michael Forney <mforney@mforney.org>
Date:   Thu, 12 Sep 2013 17:23:25 -0700

seat: Fix keymap size

Diffstat:
Mlibswc/seat.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libswc/seat.c b/libswc/seat.c @@ -237,8 +237,9 @@ static void get_keyboard(struct wl_client * client, struct wl_resource * resourc client_resource = swc_keyboard_bind(keyboard, client, id); + /* Subtract one to remove terminating NULL character. */ wl_keyboard_send_keymap(client_resource, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1, - seat->xkb.keymap.fd, seat->xkb.keymap.size); + seat->xkb.keymap.fd, seat->xkb.keymap.size - 1); } static void get_touch(struct wl_client * client, struct wl_resource * resource,