x11: Set the input device stage on XI_TouchBegin, if not already set
x11: Set the input device stage on XI_TouchBegin, if not already set

Until now, touch events sort of rely on XI_Enter/XI_Leave events accompanying
the pointer emulating touch in order to have a stage set on the device, These
events won't happen though if it's not a pointer emulating touch which happens
on the stage, causing touch events to be ignored.

Fix this by ensuring that the input device has a stage on XI_TouchBegin itself,
but only if it's not already set, so we don't possibly steal touch events to
an already interacting stage.

https://bugzilla.gnome.org/show_bug.cgi?id=732234

djdeath/clutter,ebassi/clutter,jigpu/clutter,djdeath/clutter,djdeath/clutter,GNOME/clutter,djdeath/clutter,ebassi/clutter,Distrotech/clutter,Distrotech/clutter,jigpu/clutter,ebassi/clutter,GNOME/clutter,Distrotech/clutter,GNOME/clutter,ebassi/clutter,jigpu/clutter,Distrotech/clutter,GNOME/clutter,Distrotech/clutter,jigpu/clutter,jigpu/clutter,Distrotech/clutter,GNOME/clutter,djdeath/clutter,jigpu/clutter,djdeath/clutter,ebassi/clutter