1
0
Fork 0
forked from wry/wry

config: move simple options into schema crate

This commit is contained in:
kossLAN 2026-05-29 17:00:24 -04:00
parent 902853955b
commit b550bb1025
No known key found for this signature in database
5 changed files with 53 additions and 42 deletions

View file

@ -5,5 +5,7 @@
//! generated config documentation, and compositor-side application code.
pub mod animations;
pub mod options;
pub use animations::{AnimationCurveConfig, Animations};
pub use options::{Libei, RepeatRate, SimpleIm, Tearing, UiDrag, Vrr, Xwayland};

View file

@ -0,0 +1,43 @@
use jay_config::{
video::{TearingMode, VrrMode},
xwayland::XScalingMode,
};
#[derive(Debug, Clone, Default)]
pub struct UiDrag {
pub enabled: Option<bool>,
pub threshold: Option<i32>,
}
#[derive(Debug, Clone)]
pub struct RepeatRate {
pub rate: i32,
pub delay: i32,
}
#[derive(Debug, Clone)]
pub struct Vrr {
pub mode: Option<VrrMode>,
pub cursor_hz: Option<f64>,
}
#[derive(Debug, Clone)]
pub struct SimpleIm {
pub enabled: Option<bool>,
}
#[derive(Debug, Clone)]
pub struct Xwayland {
pub enabled: Option<bool>,
pub scaling_mode: Option<XScalingMode>,
}
#[derive(Debug, Clone)]
pub struct Tearing {
pub mode: Option<TearingMode>,
}
#[derive(Debug, Clone, Default)]
pub struct Libei {
pub enable_socket: Option<bool>,
}