aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorKonstantin Pospelov <kupospelov@gmail.com>2019-02-19 16:35:35 +0300
committerSimon Ser <contact@emersion.fr>2019-04-26 20:56:48 +0300
commitf1609abe4c20a04b0b57f797b0e864b29840eda8 (patch)
treebe675820914ecad26516e7deb49d7bea9dc79d89 /include/sway
parenta09c144b8b5f9d0518e7239a27e2fb86e00644b3 (diff)
downloadsway-f1609abe4c20a04b0b57f797b0e864b29840eda8.tar.xz
config: simplify keysym translation fields
Do not store `xkb_keymap` since it can be retrieved from `xkb_state`.
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/config.h10
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 {