mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Apply default config to output
When starting without any output config, the default config was not applying.
This commit is contained in:
parent
06d9693829
commit
26204441b4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -253,9 +253,6 @@ struct output_config *output_find_config(struct sway_output *output) {
|
|||
oc = all;
|
||||
}
|
||||
|
||||
if (oc && !oc->enabled) {
|
||||
return NULL;
|
||||
}
|
||||
return oc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue