dont intterupt system calls when resizing the window