OSX 10.9 mouse freezes when switching apps
So I've downloaded 10.9 and the installation went well. Tried to launch Photoshop CS5 and it asked for Java so I installed that. Everything went well again. Now though when I'm switching between apps more often than not, my mouse will stop responding for anywhere between 13-15 seconds. It's terribly frustrating so if anyone can provide some help, I would be eternally grateful.
Mac Pro, OS X Mavericks (10.9)