From b6f4623551b76642f0f51679bc44e9e489c3d904 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 8 Aug 2018 17:04:12 -0400 Subject: [PATCH] Don't call swaynag_log for bg when not reading --- sway/commands/output/background.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index e45b571e8..748948120 100644 --- a/sway/commands/output/background.c +++ b/sway/commands/output/background.c @@ -110,7 +110,7 @@ struct cmd_results *output_cmd_background(int argc, char **argv) { if (!can_access) { wlr_log(WLR_ERROR, "Unable to access background file '%s': %s", src, strerror(errno)); - if (!config->validating) { + if (config->reading && !config->validating) { swaynag_log(config->swaynag_command, &config->swaynag_config_errors, "Unable to access background file '%s'", src);