fixed window not closing in X11 (thread problem)