diff options
author | Konstantin Pospelov <kupospelov@gmail.com> | 2019-02-19 16:35:35 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-04-26 20:56:48 +0300 |
commit | f1609abe4c20a04b0b57f797b0e864b29840eda8 (patch) | |
tree | be675820914ecad26516e7deb49d7bea9dc79d89 /include | |
parent | Implement bindsym --to-code (diff) | |
download | sway-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')
-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 { | |||
408 | }; | 408 | }; |
409 | 409 | ||
410 | /** | 410 | /** |
411 | * The keysym to keycode translation. | ||
412 | */ | ||
413 | struct 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 | */ |
421 | struct sway_config { | 413 | struct 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 { |