libinput: add missing #[cfg()]

This commit is contained in:
Victor Berger 2021-04-11 12:59:54 +02:00
parent 7bbd284f0b
commit 243d2d8b38
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@ pub struct LibinputInputBackend {
context: libinput::Libinput,
config: LibinputConfig,
seats: HashMap<libinput::Seat, backend::Seat>,
#[cfg(feature = "backend_session")]
links: Vec<SignalToken>,
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,
}