I have a Tcl/Tk program (C and script) which processes X-input events from a graphics tablet (Wacom). XSelectExtensionEvent()
is called such that the X server reports these events (like pen motion), and Tk_CreateGenericHandler()
is used to register a handler function (which then invokes a Tcl proc).
Everything was working fine up to Ubuntu 20.04 with Tk 8.6.10, but the callback function is not called any longer for these events (like motion events of the pen) in Ubuntu 22.04 with Tk 8.6.12. However, if I use XNextEvent()
to get the events directly, I see the motion events. xev
also sees the events, so it doesn't seem to be a driver problem.
However, I need to use the Tk event handling to integrate the events into the Tcl/Tk script, so using XNextEvent()
is not a solution.
Does anyone know whether the event handling was changed in Tk lately? Or any other idea what could have changed? Thanks a lot!