I haven't noticed this when using a USB mouse, but when I use my trackpad recently, and click on a non-active window, it focuses on the window I clicked on and then immediately "minimizes" it into the dock. Any ideas?