aboutsummaryrefslogtreecommitdiff
path: root/src/input/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/model.rs')
-rw-r--r--src/input/model.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input/model.rs b/src/input/model.rs
index 21252d2d..cada5506 100644
--- a/src/input/model.rs
+++ b/src/input/model.rs
@@ -295,6 +295,7 @@ impl KeyboardProtocol {
}
}
+#[cfg(any(unix, test))]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum MouseProtocolMode {
@@ -305,7 +306,9 @@ pub enum MouseProtocolMode {
AnyMotion,
}
+#[cfg(any(unix, test))]
impl MouseProtocolMode {
+ #[cfg(test)]
pub fn reporting_enabled(self) -> bool {
self != Self::None
}