diff options
author | 2018-08-08 17:21:22 -0400 | |
---|---|---|
committer | 2018-08-08 17:21:22 -0400 | |
commit | 425ee270b423eb961e5e11162b37b1fb187f50ed (patch) | |
tree | 72776a698d0e2de1976e299eba73a66b7ad081b7 | |
parent | Merge pull request #2439 from RedSoxFan/fix-2434 (diff) | |
parent | Don't call swaynag_log for bg when not reading (diff) | |
download | sway-425ee270b423eb961e5e11162b37b1fb187f50ed.tar.gz sway-425ee270b423eb961e5e11162b37b1fb187f50ed.tar.zst sway-425ee270b423eb961e5e11162b37b1fb187f50ed.zip |
Merge pull request #2440 from RedSoxFan/bg-swaynag-reading-only
Don't call swaynag_log for bg when not reading
-rw-r--r-- | sway/commands/output/background.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output/background.c b/sway/commands/output/background.c index e45b571e..74894812 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) { | |||
110 | if (!can_access) { | 110 | if (!can_access) { |
111 | wlr_log(WLR_ERROR, "Unable to access background file '%s': %s", | 111 | wlr_log(WLR_ERROR, "Unable to access background file '%s': %s", |
112 | src, strerror(errno)); | 112 | src, strerror(errno)); |
113 | if (!config->validating) { | 113 | if (config->reading && !config->validating) { |
114 | swaynag_log(config->swaynag_command, | 114 | swaynag_log(config->swaynag_command, |
115 | &config->swaynag_config_errors, | 115 | &config->swaynag_config_errors, |
116 | "Unable to access background file '%s'", src); | 116 | "Unable to access background file '%s'", src); |