This little patch adds X error handler instead of
default error handler in Xlib, which calls exit() at
the end. This helped to track the bug with new 32-bit
visual introduced in the X11R6.8 with (slow) Composite
RFE & RFC: X error could trigger save of all modified
buffers in order to avoid data loss.