[core] Recognize manual window resizing