fix key translation

This commit is contained in:
Filipe Azevedo 2025-11-11 09:16:49 +00:00
parent 6e983f6943
commit ea65d090ea
No known key found for this signature in database
4 changed files with 33 additions and 21 deletions

View file

@ -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.
*/