ecore_wl_input: fix checking keyboard modifier flag. 68/89068/2
authorHosang Kim <hosang12.kim@samsung.com>
Thu, 22 Sep 2016 03:48:35 +0000 (12:48 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Thu, 22 Sep 2016 05:45:42 +0000 (22:45 -0700)
when 'caps lock' is locking, ecore_wl_input does not send this
information.

Change-Id: Ibfe2d9982cc74e98600a22975eba1a6ab5eafc79
Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
src/lib/ecore_wayland/ecore_wl_input.c

index adbcb48..ff66a28 100644 (file)
@@ -1200,7 +1200,7 @@ _ecore_wl_input_cb_keyboard_modifiers(void *data, struct wl_keyboard *keyboard E
                          depressed, latched, locked, 0, 0, group);
 
    mask = xkb_state_serialize_mods(input->xkb.state,
-                                   (XKB_STATE_DEPRESSED | XKB_STATE_LATCHED));
+                                   (XKB_STATE_DEPRESSED | XKB_STATE_LATCHED | XKB_STATE_LOCKED));
 
    input->modifiers = 0;
    if (mask & input->xkb.control_mask)