Bird feeders

i have no garden unfortunately and recently bought a plastic feeder to stick to my main window. It has been taken over by pigeons; not something I thought would happen. Is there anything I can do to stop the pigeons and attract robins, tits, etc?