Skip to content

Commit

Permalink
Merge pull request #84 from Riey/xim-hotfix
Browse files Browse the repository at this point in the history
Don't skip control, super modifier
  • Loading branch information
Riey authored Jan 18, 2021
2 parents 5502220 + 53cf806 commit a48c60d
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 a48c60d

Please sign in to comment.