Apply default config to output

When starting without any output config, the default config was not
applying.
This commit is contained in:
Ryan Dwyer 2018-08-30 23:58:53 +10:00
parent 06d9693829
commit 26204441b4
2 changed files with 1 additions and 4 deletions

View File

@ -547,7 +547,7 @@ void handle_new_output(struct wl_listener *listener, void *data) {
struct output_config *oc = output_find_config(output);
if (oc && oc->enabled) {
if (!oc || oc->enabled) {
output_enable(output, oc);
}

View File

@ -253,9 +253,6 @@ struct output_config *output_find_config(struct sway_output *output) {
oc = all;
}
if (oc && !oc->enabled) {
return NULL;
}
return oc;
}