changing windowflags reset the size, better to do that later