31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
|
From 521f21c3ecda9bb4bcdafab59fc5cf6dba382492 Mon Sep 17 00:00:00 2001
|
||
|
From: Konstantin Bytensky <kostya3@gmail.com>
|
||
|
Date: Wed, 11 Feb 2015 11:51:45 +0200
|
||
|
Subject: [PATCH] Fix to make wl_keyboard_send_keymap call before
|
||
|
wl_keyboard_send_modifiers. It requires for mpv.
|
||
|
|
||
|
---
|
||
|
libswc/keyboard.c | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/libswc/keyboard.c b/libswc/keyboard.c
|
||
|
index 28a66eb..b06844e 100644
|
||
|
--- libswc/keyboard.c
|
||
|
+++ libswc/keyboard.c
|
||
|
@@ -216,13 +216,14 @@ struct wl_resource * keyboard_bind(struct keyboard * keyboard,
|
||
|
version, id);
|
||
|
wl_resource_set_implementation(client_resource, &keyboard_implementation,
|
||
|
keyboard, &unbind);
|
||
|
- input_focus_add_resource(&keyboard->focus, client_resource);
|
||
|
|
||
|
/* Subtract one to remove terminating NULL character. */
|
||
|
wl_keyboard_send_keymap(client_resource, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
|
||
|
keyboard->xkb.keymap.fd,
|
||
|
keyboard->xkb.keymap.size - 1);
|
||
|
|
||
|
+ input_focus_add_resource(&keyboard->focus, client_resource);
|
||
|
+
|
||
|
if (version >= 4)
|
||
|
{
|
||
|
wl_keyboard_send_repeat_info(client_resource,
|