Created attachment 6589 Bug fix 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 [1]. [1] http://xfce.10915.n7.nabble.com/Re-Xfwm-window-borders-do-not-respond-to-touch-screen-td42357.html
This was fixed in the Xserver here: http://cgit.freedesktop.org/xorg/xserver/commit/?id=24b943132f This should not be needed.