aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/config/output.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index e061e25b..df80cab6 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -129,6 +129,13 @@ static void supersede_output_config(struct output_config *dst, struct output_con
if (src->render_bit_depth != RENDER_BIT_DEPTH_DEFAULT) {
dst->render_bit_depth = RENDER_BIT_DEPTH_DEFAULT;
}
+ if (src->set_color_transform) {
+ if (dst->color_transform) {
+ wlr_color_transform_unref(dst->color_transform);
+ dst->color_transform = NULL;
+ }
+ dst->set_color_transform = false;
+ }
if (src->background) {
free(dst->background);
dst->background = NULL;
@@ -144,6 +151,9 @@ static void supersede_output_config(struct output_config *dst, struct output_con
if (src->power != -1) {
dst->power = -1;
}
+ if (src->allow_tearing != -1) {
+ dst->allow_tearing = -1;
+ }
}
// merge_output_config sets all fields in dst that were set in src