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.
This commit is contained in:
Alexander Orzechowski 2023-07-24 02:09:28 -04:00 committed by Simon Ser
parent 72787db98a
commit e85c79051c

View file

@ -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;