[steam/f23] Re-add close functionality to X window button (#3210)