some X11 thread safeguard, no redisplay event after close
fix non-resizable windows window