Remove unused KeycodeSource (#34403)

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-07-14 11:03:16 -06:00 committed by GitHub
parent eca36c502e
commit 45d0686129
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 57 additions and 85 deletions

View file

@ -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);