forked from enlightenment/enlightenment
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 <cp.michael@samsung.com>
This commit is contained in:
parent
f6d2f30d93
commit
64683742c4
|
@ -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);
|
serial = wl_display_next_serial(_e_wl_comp->wl.display);
|
||||||
wl_resource_for_each(res, lst)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue