config: simplify keysym translation fields

Do not store `xkb_keymap` since it can be retrieved from `xkb_state`.
This commit is contained in:
Konstantin Pospelov 2019-02-19 16:35:35 +03:00 committed by Simon Ser
parent a09c144b8b
commit f1609abe4c
3 changed files with 15 additions and 26 deletions

View file

@ -407,14 +407,6 @@ enum alignment {
ALIGN_RIGHT
};
/**
* The keysym to keycode translation.
*/
struct keysym_translation_data {
struct xkb_keymap *xkb_keymap;
struct xkb_state *xkb_state;
};
/**
* The configuration struct. The result of loading a config file.
*/
@ -518,7 +510,7 @@ struct sway_config {
list_t *ipc_policies;
// The keysym to keycode translation
struct keysym_translation_data keysym_translation;
struct xkb_state *keysym_translation_state;
// Context for command handlers
struct {