mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
binding config
This commit is contained in:
parent
e1c5adc918
commit
ba69f06695
5 changed files with 180 additions and 2 deletions
|
|
@ -53,7 +53,8 @@ static void config_defaults(struct sway_config *config) {
|
|||
goto cleanup;
|
||||
if (!(config->current_mode->name = malloc(sizeof("default")))) goto cleanup;
|
||||
strcpy(config->current_mode->name, "default");
|
||||
if (!(config->current_mode->bindings = create_list())) goto cleanup;
|
||||
if (!(config->current_mode->keysym_bindings = create_list())) goto cleanup;
|
||||
if (!(config->current_mode->keycode_bindings = create_list())) goto cleanup;
|
||||
list_add(config->modes, config->current_mode);
|
||||
|
||||
config->floating_mod = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue