aboutsummaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index 4464b006..c1ec77f9 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -386,8 +386,9 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
config->active = true;
swaynag_kill(&old_config->swaynag_config_errors);
- swaynag_clone(&config->swaynag_config_errors,
- &old_config->swaynag_config_errors);
+ memcpy(&config->swaynag_config_errors,
+ &old_config->swaynag_config_errors,
+ sizeof(struct swaynag_instance));
create_default_output_configs();
}