So far as I can tell, neither of them. I assume that you intended to imply that the geraniums were sitting on the windowsill, in which case the first one is fine. The second one is absolutely fine.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
As a native speaker, it wouldn't have occurred to me...of course, I was not suggesting that the "it" in that sentence was a native speaker.