aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-07-24 02:09:28 -0400
committerSimon Ser <contact@emersion.fr>2023-08-22 09:46:24 +0000
commite85c79051cc5003568ace6a29ce6e13d16796e48 (patch)
tree54e9ae619c34a2011c4dac611e2b695245aeed5e
parent72787db98a92f59b279aade46bed297e522dadd2 (diff)
wlr_output: Set current_mode during new custom mode
When setting a custom mode current_mode will not be reset. That means that next time the compositor tries to reset back from the custom mode, it will compare against the stale current_mode and unset WLR_OUTPUT_STATE_MODE erroneously.
-rw-r--r--types/output/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/output/output.c b/types/output/output.c
index d1fda35e..81c4e39e 100644
--- a/types/output/output.c
+++ b/types/output/output.c
@@ -358,6 +358,7 @@ static void output_apply_state(struct wlr_output *output,
}
break;
case WLR_OUTPUT_STATE_MODE_CUSTOM:
+ output->current_mode = NULL;
width = state->custom_mode.width;
height = state->custom_mode.height;
refresh = state->custom_mode.refresh;