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.
|
||
|---|---|---|
| .. | ||
| inject.rs | ||
| lib.rs | ||
| monitor.rs | ||
| uinput_monitor.rs | ||
| wayland_im.rs | ||
| x11_capture.rs | ||
| x11_inject.rs | ||