mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
config/output: drop fast path in store_output_config()
If there is no output currently connected, we still want to merge to any existing config. It shouldn't matter to iterate over the list of outputs to do nothing anwyays.
This commit is contained in:
parent
66faaf52f0
commit
21f81d8e9e
1 changed files with 0 additions and 5 deletions
|
|
@ -211,10 +211,6 @@ void store_output_config(struct output_config *oc) {
|
||||||
bool merged = false;
|
bool merged = false;
|
||||||
bool wildcard = strcmp(oc->name, "*") == 0;
|
bool wildcard = strcmp(oc->name, "*") == 0;
|
||||||
struct sway_output *output = wildcard ? NULL : output_by_name_or_id(oc->name);
|
struct sway_output *output = wildcard ? NULL : output_by_name_or_id(oc->name);
|
||||||
if (!output && !wildcard) {
|
|
||||||
// There is no config by this name, just add it in
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
char id[128];
|
char id[128];
|
||||||
if (output) {
|
if (output) {
|
||||||
|
|
@ -249,7 +245,6 @@ void store_output_config(struct output_config *oc) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
|
||||||
sway_log(SWAY_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz "
|
sway_log(SWAY_DEBUG, "Config stored for output %s (enabled: %d) (%dx%d@%fHz "
|
||||||
"position %d,%d scale %f subpixel %s transform %d) (bg %s %s) (power %d) "
|
"position %d,%d scale %f subpixel %s transform %d) (bg %s %s) (power %d) "
|
||||||
"(max render time: %d)",
|
"(max render time: %d)",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue