Skip to content

Commit

Permalink
Update xim-rs 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Riey committed Feb 5, 2021
1 parent cef4f33 commit 49d0ef3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/frontends/xim/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ impl ServerHandler<X11rbServer<XCBConnection>> for KimeHandler {
1
}

fn sync_mode(&self) -> bool {
true
}

fn handle_connect(
&mut self,
_server: &mut X11rbServer<XCBConnection>,
Expand All @@ -212,15 +216,14 @@ impl ServerHandler<X11rbServer<XCBConnection>> for KimeHandler {

fn handle_create_ic(
&mut self,
server: &mut X11rbServer<XCBConnection>,
_server: &mut X11rbServer<XCBConnection>,
input_context: &mut xim::InputContext<KimeData>,
) -> Result<(), xim::ServerError> {
log::info!(
"IC created style: {:?}, spot_location: {:?}",
input_context.input_style(),
input_context.preedit_spot()
);
server.set_event_mask(input_context, 1, 0)?;

Ok(())
}
Expand Down

0 comments on commit 49d0ef3

Please sign in to comment.