1
0
Fork 0
forked from wry/wry

config: move input match schema into schema crate

This commit is contained in:
kossLAN 2026-05-29 17:05:46 -04:00
parent fb65585bfa
commit 81a1a865a1
No known key found for this signature in database
4 changed files with 33 additions and 21 deletions

View file

@ -44,8 +44,8 @@ use {
pub use jay_config_schema::{
AnimationCurveConfig, Animations, ColorManagement, ConfigConnector, ConfigDrmDevice,
ConnectorMatch, DrmDeviceMatch, Float, FocusHistory, Libei, Mode, Output, OutputMatch,
RepeatRate, SimpleIm, Tearing, Theme, UiDrag, Vrr, Xwayland,
ConnectorMatch, DrmDeviceMatch, Float, FocusHistory, InputMatch, Libei, Mode, Output,
OutputMatch, RepeatRate, SimpleIm, Tearing, Theme, UiDrag, Vrr, Xwayland,
};
#[derive(Debug, Copy, Clone)]
@ -291,24 +291,6 @@ pub struct WindowMatch {
pub content_types: Option<ContentType>,
}
#[derive(Debug, Clone)]
pub enum InputMatch {
Any(Vec<InputMatch>),
All {
tag: Option<String>,
name: Option<String>,
syspath: Option<String>,
devnode: Option<String>,
is_keyboard: Option<bool>,
is_pointer: Option<bool>,
is_touch: Option<bool>,
is_tablet_tool: Option<bool>,
is_tablet_pad: Option<bool>,
is_gesture: Option<bool>,
is_switch: Option<bool>,
},
}
#[derive(Debug, Clone)]
pub struct Input {
pub tag: Option<String>,