devilhorns pushed a commit to branch master.

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

commit 64683742c4f67a4b14289456a2cc61c94e4e970f
Author: Chris Michael <[email protected]>
Date:   Thu Jun 26 13:41:25 2014 -0400

    e-comp-wl: Fix keyboard input sending wrong keys
    
    NB: When running wayland clients under X11, we need to subtract 8 from
    the keycode value to reflect X's broken keyboard rules
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index a806de8..a1cecaf 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -1210,7 +1210,7 @@ _default_grab_key(struct wl_keyboard_grab *grab, uint32_t 
timestamp, uint32_t ke
 
         serial = wl_display_next_serial(_e_wl_comp->wl.display);
         wl_resource_for_each(res, lst)
-          wl_keyboard_send_key(res, serial, timestamp, key, state);
+          wl_keyboard_send_key(res, serial, timestamp, key - 8, state);
      }
 }
 

-- 


Reply via email to