ecore-drm: Reset modifiers to zero before updating them on keypress
authorChris Michael <cp.michael@samsung.com>
Mon, 10 Mar 2014 13:44:29 +0000 (13:44 +0000)
committerChris Michael <cp.michael@samsung.com>
Mon, 10 Mar 2014 13:44:29 +0000 (13:44 +0000)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_evdev.c

index 1c0a3da..4c52104 100644 (file)
@@ -42,9 +42,6 @@ _device_keyboard_setup(Ecore_Drm_Evdev *edev)
         return;
      }
 
-   /* FIXME: setup modifiers ? */
-   edev->xkb.modifiers = 0;
-
    edev->xkb.ctrl_mask = 
      1 << xkb_map_mod_get_index(edev->xkb.keymap, XKB_MOD_NAME_CTRL);
    edev->xkb.alt_mask = 
@@ -251,6 +248,8 @@ _device_modifiers_update(Ecore_Drm_Evdev *edev)
 {
    xkb_mod_mask_t mask;
 
+   edev->xkb.modifiers = 0;
+
    edev->xkb.depressed = 
      xkb_state_serialize_mods(edev->xkb.state, XKB_STATE_DEPRESSED);
    edev->xkb.latched =