summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-10-17 01:19:28 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-10-17 01:19:28 +0200
commit720164ae7b903c5c82dd5c0da1ef099a159aa423 (patch)
tree2f39a2167c5510c5df3ef1905731d37765a976ac
parent065b89138bc5059b89c28db423f4b1386a93052d (diff)
config/output: Remove initial values in find_output_config
Starting by setting some special initial output config values settings was something sway used to do when the config was initially being processed. This was later changed to always happen, as there shouldn't be differences in how output config is calculated during config load and after. Most of these values are redundant, as they are either the zero value or a value that would be selected if the unset (-1) value was found. For output transforms, the automatic panel orientation code would only trigger if the final output config has an unset transform, which the initial values set in find_output_config made impossible. Remove these initial values and instead use a fresh output config as is. (cherry picked from commit 17ecb9eb1d355c677dc9cf772d372982b7b9541b)
-rw-r--r--sway/config/output.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index f39082d0..6db10b07 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -587,15 +587,6 @@ static struct output_config *find_output_config_from_list(
return NULL;
}
- // Set output defaults for the "base" configuration
- result->enabled = 1;
- result->power = 1;
- result->scale = 0; // auto
- result->subpixel = sway_output->detected_subpixel;
- result->transform = WL_OUTPUT_TRANSFORM_NORMAL;
- result->max_render_time = 0;
- result->allow_tearing = 0;
-
char id[128];
output_get_identifier(id, sizeof(id), sway_output);