handle ConfigureNotify event in XNextEvent