From 243d2d8b38fafc4251965c43b3c4afd9c7bf1b77 Mon Sep 17 00:00:00 2001 From: Victor Berger Date: Sun, 11 Apr 2021 12:59:54 +0200 Subject: [PATCH] libinput: add missing #[cfg()] --- src/backend/libinput/mod.rs | 2 ++ 1 file changed, 2 insertions(+) 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, }