Fix flags
Merge pull request #884 from RobertBColton/master

Fix Window Flags