Add rules for some windows