mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
config: simplify keysym translation fields
Do not store `xkb_keymap` since it can be retrieved from `xkb_state`.
This commit is contained in:
parent
a09c144b8b
commit
f1609abe4c
3 changed files with 15 additions and 26 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue