Check this topic I wrote, in case you happen to be switching between applications in a particular way: