output-configuration: Add vrr state
This commit is contained in:
parent
4b71674e10
commit
98ec82db77
4 changed files with 68 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue