Add flags of a window