vietc/protocol
Khoa Vo f87e37ebff fix: XEvent was a struct but X11 defines it as a union — all fields at offset 0
CRITICAL BUG: XEvent was { _type, _pad[24], data } (data at offset 28)
but in X11 it's a union where ALL variants start at offset 0. This meant
event.data.key.state/keycode read from completely wrong offsets — every
keystroke produced garbage characters.

Fixed by replacing XEvent with a raw [u8; 192] byte buffer and using
event_type() and key() accessor methods that cast from offset 0.
Also fixed same bug in x11_inject.rs.
2026-06-26 09:38:25 +07:00
..
src fix: XEvent was a struct but X11 defines it as a union — all fields at offset 0 2026-06-26 09:38:25 +07:00
build.rs Viet+ v0.1.1 2026-06-24 17:29:12 +07:00
Cargo.toml Viet+ v0.1.1 2026-06-24 17:29:12 +07:00