Fix focus minimize & restore window