Make sure you have removed the cat from the bedroom before attemping to sleep.
If she is sitting on the window sill above the pair of you, and jumps down, Puss will land on something to cause you to react with vigour, and then look at you and wonder what the fuss is about....