Fix frame focus and resizing