Bugfix: consider inactive monitors when querying (#2862)

fixes #2815
fixes #2594
This commit is contained in:
Michael Stapelberg
2017-08-20 00:19:45 +02:00
committed by GitHub
parent e6682f862b
commit 4d93d26484
3 changed files with 11 additions and 9 deletions

View File

@ -41,7 +41,7 @@ Output *get_output_from_string(Output *current_output, const char *output_str) {
return get_output_next_wrap(D_DOWN, current_output);
}
return get_output_by_name(output_str);
return get_output_by_name(output_str, true);
}
Output *get_output_for_con(Con *con) {
@ -51,7 +51,7 @@ Output *get_output_for_con(Con *con) {
return NULL;
}
Output *output = get_output_by_name(output_con->name);
Output *output = get_output_by_name(output_con->name, true);
if (output == NULL) {
ELOG("Could not get output from name \"%s\".\n", output_con->name);
return NULL;