On X11, extract event handlers

Make code more clear wrt explicit returns during event handling,
which may lead to skipped IME event handling.
This commit is contained in:
Kirill Chibisov 2024-02-09 06:32:03 +04:00
parent dbe0f852da
commit 273984a385
6 changed files with 1400 additions and 1349 deletions

View file

@ -6,7 +6,7 @@ macro_rules! atom_manager {
($($name:ident $(:$lit:literal)?),*) => {
x11rb::atom_manager! {
/// The atoms used by `winit`
pub(crate) Atoms: AtomsCookie {
pub Atoms: AtomsCookie {
$($name $(:$lit)?,)*
}
}
@ -14,7 +14,7 @@ macro_rules! atom_manager {
/// Indices into the `Atoms` struct.
#[derive(Copy, Clone, Debug)]
#[allow(non_camel_case_types)]
pub(crate) enum AtomName {
pub enum AtomName {
$($name,)*
}