From 64683742c4f67a4b14289456a2cc61c94e4e970f Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Thu, 26 Jun 2014 13:41:25 -0400 Subject: [PATCH] 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 --- 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 a806de829..a1cecaf10 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); } }