discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d6772d89113a8c909bbd593b4efb2c4a79eb6528

commit d6772d89113a8c909bbd593b4efb2c4a79eb6528
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Jan 25 16:31:11 2016 -0500

    update xkb.cur_group and send event upon serializing an EFFECTIVE layout in 
wl input
    
    according to xkbcommon, the group returned from serializing the EFFECTIVE 
layout
    is the one which is currently active. this array index should match up with 
the
    list used in the xkb part of E_Config
---
 src/bin/e_comp_wl_input.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index 5b984fb..c733be1 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -522,6 +522,11 @@ e_comp_wl_input_keyboard_modifiers_serialize(void)
 
    grp = xkb_state_serialize_layout(e_comp_wl->xkb.state,
                                     XKB_STATE_LAYOUT_EFFECTIVE);
+   if (grp != e_comp_wl->kbd.mod_group)
+     {
+        e_config->xkb.cur_group = grp;
+        ecore_event_add(E_EVENT_XKB_CHANGED, NULL, NULL, NULL);
+     }
    changed |= grp != e_comp_wl->kbd.mod_group;
    e_comp_wl->kbd.mod_group = grp;
    return changed;

-- 


Reply via email to