Fix an issue with the shape extension and resizing windows.