I use XMonad, and don't have these problems to fix (in a sense, because XMonad 'fixes' them). For those who are on Linux who've never used XMonad, I suggest you give it a try. It's awesome. I'm on Ubuntu 13.04 and have never been bothered by ads. Also, I find the instantaneous desktop switching and fullscreen windows, resizable tiling invaluable.