mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01: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
2 changed files with 1 additions and 4 deletions
|
@ -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