1
0
Fork 0
forked from wry/wry

output: don't use config Vrr and Tearing modes

This commit is contained in:
Julian Orth 2026-02-25 12:06:04 +01:00
parent e063b7c14b
commit fb9b83994a
14 changed files with 55 additions and 56 deletions

View file

@ -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(())
}
}

View file

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

View file

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