refactor(output config): move to config crate

this allows the greeter to easily sync to the user config
This commit is contained in:
Ashley Wulber 2025-08-19 16:51:37 -04:00 committed by Ashley Wulber
parent 4a385d5535
commit 416b66b776
17 changed files with 283 additions and 194 deletions

View file

@ -2,12 +2,13 @@
use crate::{
backend::render,
config::{OutputConfig, ScreenFilter},
config::ScreenFilter,
shell::{Devices, SeatExt},
state::{BackendData, Common},
utils::prelude::*,
};
use anyhow::{anyhow, Context, Result};
use cosmic_comp_config::output::{OutputConfig, TransformDef};
use smithay::{
backend::{
drm::NodeType,
@ -167,7 +168,7 @@ pub fn init_backend(
output.user_data().insert_if_missing(|| {
RefCell::new(OutputConfig {
mode: ((size.w, size.h), None),
transform: Transform::Flipped180.into(),
transform: TransformDef::Flipped180,
..Default::default()
})
});