Added window creation intent printing.
Added missing detection of invalid flags.