From f1609abe4c20a04b0b57f797b0e864b29840eda8 Mon Sep 17 00:00:00 2001 From: Konstantin Pospelov Date: Tue, 19 Feb 2019 16:35:35 +0300 Subject: config: simplify keysym translation fields Do not store `xkb_keymap` since it can be retrieved from `xkb_state`. --- include/sway/config.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/sway/config.h') diff --git a/include/sway/config.h b/include/sway/config.h index 392f6538..db507296 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -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 { -- cgit v1.2.3-54-g00ecf