Implement XLIB resize event