Implement resize events on X11