Created attachment 6589
When the Xorg server translates touch events into ButtonPress/ButtonRelease
events, the subwindow in the XEvent structure is set to zero. This change adds a querry to determine the subwindow for the event in case it is missing.
Original patch & discussion at .
This was fixed in the Xserver here:
This should not be needed.