aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Konstantin Pospelov <kupospelov@gmail.com>2019-02-19 16:35:35 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-04-26 20:56:48 +0300
commitf1609abe4c20a04b0b57f797b0e864b29840eda8 (patch)
treebe675820914ecad26516e7deb49d7bea9dc79d89 /include/sway/config.h
parentImplement bindsym --to-code (diff)
downloadsway-f1609abe4c20a04b0b57f797b0e864b29840eda8.tar.gz
sway-f1609abe4c20a04b0b57f797b0e864b29840eda8.tar.zst
sway-f1609abe4c20a04b0b57f797b0e864b29840eda8.zip
config: simplify keysym translation fields
Do not store `xkb_keymap` since it can be retrieved from `xkb_state`.
Diffstat (limited to 'include/sway/config.h')
-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 {
408}; 408};
409 409
410/** 410/**
411 * The keysym to keycode translation.
412 */
413struct keysym_translation_data {
414 struct xkb_keymap *xkb_keymap;
415 struct xkb_state *xkb_state;
416};
417
418/**
419 * The configuration struct. The result of loading a config file. 411 * The configuration struct. The result of loading a config file.
420 */ 412 */
421struct sway_config { 413struct sway_config {
@@ -518,7 +510,7 @@ struct sway_config {
518 list_t *ipc_policies; 510 list_t *ipc_policies;
519 511
520 // The keysym to keycode translation 512 // The keysym to keycode translation
521 struct keysym_translation_data keysym_translation; 513 struct xkb_state *keysym_translation_state;
522 514
523 // Context for command handlers 515 // Context for command handlers
524 struct { 516 struct {