mirror of
https://github.com/swaywm/sway.git
synced 2026-02-09 10:07:04 -05:00
fix key translation
This commit is contained in:
parent
6e983f6943
commit
ea65d090ea
4 changed files with 33 additions and 21 deletions
|
|
@ -98,6 +98,16 @@ void container_resize_tiled(struct sway_container *parent, uint32_t axis,
|
|||
struct sway_container *container_find_resize_parent(struct sway_container *con,
|
||||
uint32_t edge);
|
||||
|
||||
// Keysym to keycode translation (used by bind.c and keyboard.c)
|
||||
struct keycode_matches {
|
||||
xkb_keysym_t keysym;
|
||||
xkb_keycode_t keycode;
|
||||
int count;
|
||||
};
|
||||
|
||||
void find_keycode(struct xkb_keymap *keymap, xkb_keycode_t keycode, void *data);
|
||||
struct keycode_matches get_keycode_for_keysym(xkb_keysym_t keysym);
|
||||
|
||||
/**
|
||||
* Handlers shared by exec and exec_always.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue