[mutter] wayland-keyboard: Send keymap events also to focused resources



commit 75cbf3d730010020642552fb67e7b666dc4f74dc
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Jul 7 13:53:11 2014 +0200

    wayland-keyboard: Send keymap events also to focused resources
    
    We move focused resources out of the global list when we focus a
    client's surface so we need to send events for those separately.

 src/wayland/meta-wayland-keyboard.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-keyboard.c b/src/wayland/meta-wayland-keyboard.c
index e1b1430..ec35c83 100644
--- a/src/wayland/meta-wayland-keyboard.c
+++ b/src/wayland/meta-wayland-keyboard.c
@@ -128,6 +128,13 @@ inform_clients_of_new_keymap (MetaWaylandKeyboard *keyboard,
                               keyboard->xkb_info.keymap_fd,
                               keyboard->xkb_info.keymap_size);
     }
+  wl_resource_for_each (keyboard_resource, &keyboard->focus_resource_list)
+    {
+      wl_keyboard_send_keymap (keyboard_resource,
+                               WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
+                               keyboard->xkb_info.keymap_fd,
+                               keyboard->xkb_info.keymap_size);
+    }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]