1
0
Fork 0
forked from wry/wry

implement wlr_output_management_unstable_v1

This commit is contained in:
Mostafa Ibrahim 2025-06-03 22:18:53 +03:00 committed by Julian Orth
parent a3c0631f4e
commit c6060a7389
23 changed files with 1349 additions and 32 deletions

View file

@ -125,6 +125,20 @@ pub struct PersistentOutputState {
pub brightness: Cell<Option<f64>>,
}
impl Default for PersistentOutputState {
fn default() -> Self {
Self {
transform: Default::default(),
scale: Default::default(),
pos: Default::default(),
vrr_mode: Cell::new(&VrrMode::Never),
vrr_cursor_hz: Default::default(),
tearing_mode: Cell::new(&TearingMode::Never),
brightness: Default::default(),
}
}
}
#[derive(Eq, PartialEq, Hash, Debug)]
pub struct OutputId {
pub connector: Option<String>,