Change a xkb state if chached keymap is changed 79/73979/2
authorJeongHyun Kang <jhyuni.kang@samsung.com>
Fri, 10 Jun 2016 08:31:10 +0000 (17:31 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 10 Jun 2016 08:35:10 +0000 (01:35 -0700)
Change-Id: I94e04c79dd99db6fcdaa3a943aaa7e0bf1e76c0d

src/lib/ecore_drm/ecore_drm_device.c

index 69fe1d3..479b82d 100644 (file)
@@ -182,6 +182,8 @@ _ecore_drm_device_cached_keymap_update(struct xkb_keymap *map)
          {
             xkb_keymap_unref(edev->xkb.keymap);
             edev->xkb.keymap = xkb_keymap_ref(map);
+            xkb_state_unref(edev->xkb.state);
+            edev->xkb.state = xkb_state_new(map);
          }
 }