Setting some window properties before mapping