diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-02-19 16:35:35 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-02-19 16:35:35 +0300 |
| commit | 2928c0877bb0c6741875838075ead8dbc59ab228 (patch) | |
| tree | be675820914ecad26516e7deb49d7bea9dc79d89 /include | |
| parent | 3b2fd2a44e3b1e3fa48627be56cfcbdfc78f49e1 (diff) | |
config: simplify keysym translation fields
Do not store `xkb_keymap` since it can be retrieved from `xkb_state`.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/config.h | 10 |
1 files changed, 1 insertions, 9 deletions
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 @@ -408,14 +408,6 @@ enum alignment { }; /** - * 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. */ struct sway_config { @@ -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 { |
