commit d44b1fe

Michael Forney  ·  2013-09-13 00:23:25 +0000 UTC
parent 284cf40
seat: Fix keymap size
1 files changed,  +2, -1
+2, -1
 1@@ -237,8 +237,9 @@ static void get_keyboard(struct wl_client * client, struct wl_resource * resourc
 2 
 3     client_resource = swc_keyboard_bind(keyboard, client, id);
 4 
 5+    /* Subtract one to remove terminating NULL character. */
 6     wl_keyboard_send_keymap(client_resource, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
 7-                            seat->xkb.keymap.fd, seat->xkb.keymap.size);
 8+                            seat->xkb.keymap.fd, seat->xkb.keymap.size - 1);
 9 }
10 
11 static void get_touch(struct wl_client * client, struct wl_resource * resource,