From a745eace153405d3a14655c9405b963ac94c9455 Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sat, 24 Nov 2018 14:15:14 +0100 Subject: [PATCH] anvil: fix tty swap --- anvil/src/input_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anvil/src/input_handler.rs b/anvil/src/input_handler.rs index 31b0563..f417235 100644 --- a/anvil/src/input_handler.rs +++ b/anvil/src/input_handler.rs @@ -11,7 +11,7 @@ use std::{ use slog::Logger; #[cfg(feature = "udev")] -use smithay::backend::session::auto::AutoSession; +use smithay::backend::session::{Session, auto::AutoSession}; use smithay::{ backend::input::{ self, Event, InputBackend, InputHandler, KeyState, KeyboardKeyEvent, PointerAxisEvent, @@ -131,7 +131,7 @@ impl InputHandler for AnvilInputHandler { info!(self.log, "Quitting."); self.running.store(false, Ordering::SeqCst); } - #[cfg(feature = "tty_lauch")] + #[cfg(feature = "udev")] KeyAction::VtSwitch(vt) => if let Some(ref mut session) = self.session { info!(log, "Trying to switch to vt {}", vt); if let Err(err) = session.change_vt(vt) {