parent
eca36c502e
commit
45d0686129
3 changed files with 57 additions and 85 deletions
|
@ -1,4 +1,4 @@
|
|||
use crate::{Capslock, KeycodeSource, xcb_flush};
|
||||
use crate::{Capslock, xcb_flush};
|
||||
use core::str;
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
|
@ -1034,8 +1034,7 @@ impl X11Client {
|
|||
xkb_state.latched_layout,
|
||||
xkb_state.locked_layout,
|
||||
);
|
||||
let mut keystroke =
|
||||
crate::Keystroke::from_xkb(&state.xkb, modifiers, code, KeycodeSource::X11);
|
||||
let mut keystroke = crate::Keystroke::from_xkb(&state.xkb, modifiers, code);
|
||||
let keysym = state.xkb.key_get_one_sym(code);
|
||||
if keysym.is_modifier_key() {
|
||||
return Some(());
|
||||
|
@ -1103,8 +1102,7 @@ impl X11Client {
|
|||
xkb_state.latched_layout,
|
||||
xkb_state.locked_layout,
|
||||
);
|
||||
let keystroke =
|
||||
crate::Keystroke::from_xkb(&state.xkb, modifiers, code, KeycodeSource::X11);
|
||||
let keystroke = crate::Keystroke::from_xkb(&state.xkb, modifiers, code);
|
||||
let keysym = state.xkb.key_get_one_sym(code);
|
||||
if keysym.is_modifier_key() {
|
||||
return Some(());
|
||||
|
@ -1328,7 +1326,6 @@ impl X11Client {
|
|||
&state.xkb,
|
||||
state.modifiers,
|
||||
event.detail.into(),
|
||||
KeycodeSource::X11,
|
||||
));
|
||||
let (mut ximc, mut xim_handler) = state.take_xim()?;
|
||||
drop(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue