output: don't use config Vrr and Tearing modes
This commit is contained in:
parent
e063b7c14b
commit
fb9b83994a
14 changed files with 55 additions and 56 deletions
|
|
@ -29,7 +29,7 @@ pub struct ZwlrOutputConfigurationHeadV1 {
|
|||
pub struct OutputConfig {
|
||||
pub(super) transform: Option<Transform>,
|
||||
pub(super) scale: Option<Scale>,
|
||||
pub(super) vrr_mode: Option<&'static VrrMode>,
|
||||
pub(super) vrr_mode: Option<VrrMode>,
|
||||
pub(super) pos: Option<(i32, i32)>,
|
||||
pub(super) mode: Option<Mode>,
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ impl ZwlrOutputConfigurationHeadV1RequestHandler for ZwlrOutputConfigurationHead
|
|||
);
|
||||
}
|
||||
};
|
||||
config.vrr_mode = Some(state);
|
||||
config.vrr_mode = Some(*state);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ impl ZwlrOutputConfigurationV1 {
|
|||
if let Some(v) = config.scale {
|
||||
node.set_preferred_scale(v);
|
||||
}
|
||||
if let Some(v) = config.vrr_mode {
|
||||
if let Some(v) = &config.vrr_mode {
|
||||
node.set_vrr_mode(v);
|
||||
}
|
||||
if let Some(v) = config.pos {
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ impl ZwlrOutputManagerV1 {
|
|||
head.send_position(p.pos.get().0, p.pos.get().1);
|
||||
head.send_transform(p.transform.get());
|
||||
if head.version >= ADAPTIVE_SYNC_SINCE {
|
||||
head.send_adaptive_sync(p.vrr_mode.get());
|
||||
head.send_adaptive_sync(&p.vrr_mode.get());
|
||||
}
|
||||
}
|
||||
self.schedule_done();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue