From 53cf806570f249eb28b36016359bf0f040bafdc6 Mon Sep 17 00:00:00 2001 From: Riey Date: Mon, 18 Jan 2021 17:14:32 +0900 Subject: [PATCH] Don't skip control, super modifier --- xim/src/handler.rs | 4 ++-- xim/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xim/src/handler.rs b/xim/src/handler.rs index 4013cb48..8885b1c0 100644 --- a/xim/src/handler.rs +++ b/xim/src/handler.rs @@ -215,8 +215,8 @@ impl ServerHandler> for KimeHandler { log::trace!("{:?}", xev); - // other modifiers then shift - if xev.state & (!0x1) != 0 { + // other modifiers then shift or control or super + if xev.state & !(0x1 | 0x4 | 0x40) != 0 { self.reset(server, input_context)?; return Ok(false); } diff --git a/xim/src/main.rs b/xim/src/main.rs index 41a3175c..8e434fc9 100644 --- a/xim/src/main.rs +++ b/xim/src/main.rs @@ -12,7 +12,7 @@ fn main() -> Result<(), ServerError> { if cfg!(debug_assertions) { log::LevelFilter::Trace } else { - log::LevelFilter::Warn + log::LevelFilter::Info }, simplelog::ConfigBuilder::new().build(), )