Skip to content

Commit

Permalink
Don't skip control, super modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Jan 18, 2021
1 parent 5502220 commit 53cf806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xim/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ impl ServerHandler<X11rbServer<XCBConnection>> 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);
}
Expand Down
2 changes: 1 addition & 1 deletion xim/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down

0 comments on commit 53cf806

Please sign in to comment.