Animeshz / keyboard-mouse-kt

A lightweight multiplatform library for interacting with global keyboard and mouse events and states from Kotlin, Java and NodeJS.
https://animeshz.github.io/keyboard-mouse-kt
MIT License
52 stars 2 forks source link

Bug: NativeKeyboardHandler.sendEvent() doesn't work in Linux x64 (both on JVM & Native). #10

Closed Animeshz closed 3 years ago

Animeshz commented 3 years ago

Unexpectedly the X11 events are not able to dispatch properly, the root cause is unknown. I've asked a question on StackOverflow but didn't got a meaningful reply. Maybe we need to dig deeper why doesn't XSendEvent work.

Affected code: https://github.com/Animeshz/keyboard-mouse-kt/blob/1dbe0d2cd1915dde5138af6944de1733f9c0a74f/keyboard/src/jvmMain/jni/linux-x64/X11KeyboardHandler.cpp#L100-L116