Merge pull request #2440 from RedSoxFan/bg-swaynag-reading-only

Don't call swaynag_log for bg when not reading
This commit is contained in:
Drew DeVault 2018-08-08 17:21:22 -04:00 committed by GitHub
commit 425ee270b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);