[X11] Workaround for issue #146

Windows are now unmapped before being destroyed.