diff --git a/Cargo.toml b/Cargo.toml index cac1b1c..d6e33b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,10 +9,13 @@ license-file = "LICENSE" clap = "2.33.0" counter = "0.4.3" error-chain = "0.12.1" -i3ipc = "0.10.1" lazy_static = "1.4" log = "0.4" regex = "1" signal-hook = "0.1.13" simple_logger = "1.5.0" xcb = "0.9.0" + +[dependencies.i3ipc] +version = "0.10.1" +features = ["i3-4-14"] diff --git a/src/main.rs b/src/main.rs index 2c03df4..494b2fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -226,7 +226,8 @@ fn main() -> Result<()> { }, _ => (), }, - Err(err) => warn!("Error: {}", err), + Ok(i3ipc::event::Event::ShutdownEvent(_info)) => std::process::exit(0), + Err(_err) => std::process::exit(0), _ => (), } }