diff --git a/src/backend/libinput/mod.rs b/src/backend/libinput/mod.rs index 6559b08..c783158 100644 --- a/src/backend/libinput/mod.rs +++ b/src/backend/libinput/mod.rs @@ -38,6 +38,7 @@ pub struct LibinputInputBackend { context: libinput::Libinput, config: LibinputConfig, seats: HashMap, + #[cfg(feature = "backend_session")] links: Vec, logger: ::slog::Logger, } @@ -55,6 +56,7 @@ impl LibinputInputBackend { context, config: LibinputConfig { devices: Vec::new() }, seats: HashMap::new(), + #[cfg(feature = "backend_session")] links: Vec::new(), logger: log, }