dxapp: handle window resizing