diff options
Diffstat (limited to 'src/window')
| -rw-r--r-- | src/window/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window/mod.rs b/src/window/mod.rs index 0e0774fd..4d06bb04 100644 --- a/src/window/mod.rs +++ b/src/window/mod.rs @@ -72,6 +72,9 @@ pub struct ResolvedWindowRules { /// Whether to block out this window from certain render targets. pub block_out_from: Option<BlockOutFrom>, + + /// Whether to enable VRR on this window's primary output if it is on-demand. + pub variable_refresh_rate: Option<bool>, } impl<'a> WindowRef<'a> { @@ -132,6 +135,7 @@ impl ResolvedWindowRules { geometry_corner_radius: None, clip_to_geometry: None, block_out_from: None, + variable_refresh_rate: None, } } @@ -231,6 +235,9 @@ impl ResolvedWindowRules { if let Some(x) = rule.block_out_from { resolved.block_out_from = Some(x); } + if let Some(x) = rule.variable_refresh_rate { + resolved.variable_refresh_rate = Some(x); + } } resolved.open_on_output = open_on_output.map(|x| x.to_owned()); |
