Merge "Don't use a copy of window params when showing a dialog." into pi-dev