libinput: add missing #[cfg()]
This commit is contained in:
parent
7bbd284f0b
commit
243d2d8b38
|
@ -38,6 +38,7 @@ pub struct LibinputInputBackend {
|
||||||
context: libinput::Libinput,
|
context: libinput::Libinput,
|
||||||
config: LibinputConfig,
|
config: LibinputConfig,
|
||||||
seats: HashMap<libinput::Seat, backend::Seat>,
|
seats: HashMap<libinput::Seat, backend::Seat>,
|
||||||
|
#[cfg(feature = "backend_session")]
|
||||||
links: Vec<SignalToken>,
|
links: Vec<SignalToken>,
|
||||||
logger: ::slog::Logger,
|
logger: ::slog::Logger,
|
||||||
}
|
}
|
||||||
|
@ -55,6 +56,7 @@ impl LibinputInputBackend {
|
||||||
context,
|
context,
|
||||||
config: LibinputConfig { devices: Vec::new() },
|
config: LibinputConfig { devices: Vec::new() },
|
||||||
seats: HashMap::new(),
|
seats: HashMap::new(),
|
||||||
|
#[cfg(feature = "backend_session")]
|
||||||
links: Vec::new(),
|
links: Vec::new(),
|
||||||
logger: log,
|
logger: log,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue