output-configuration: Add vrr state

This commit is contained in:
Victoria Brekenfeld 2024-04-29 15:40:29 +02:00 committed by Victoria Brekenfeld
parent 4b71674e10
commit 98ec82db77
4 changed files with 68 additions and 2 deletions

View file

@ -55,6 +55,7 @@ impl State {
scale,
transform,
position,
adaptive_sync,
} = conf
{
match mode {
@ -76,6 +77,9 @@ impl State {
if let Some(position) = position {
current_config.position = (*position).into();
}
if let Some(vrr) = adaptive_sync {
current_config.vrr = *vrr;
}
current_config.enabled = OutputState::Enabled;
} else {
current_config.enabled = OutputState::Disabled;