Partially revert 5c99eae8a9ca04f5e89e60a314d3e19c7ef0a715

We must extract the window from XIDeviceEvent, to be able
to apply our workaround to spoof the event in compositor.c