Fix bug where window background color changes on a session-initiated resize