Override XShmQueryExtension in preload.c to disable XShm
Merge #769.
Add a test for --goto-event.
Merge #773.