I have a fresh install of 14.04.2 and whenever I open more than one window of a program (for example, two windows of chrome, or nautilus), and click the icon on the unity launcher, the system shuts down all my processes and logs me out. This only happens on clicking, not when I access things another way (for example, Alt-Tab-ing to the window works).
This only happens when clicking the program which already has more than one window running, I can launch programs and switch between processes which only have one window by clicking.
I tried a couple of simple things like reinstalling
lightdm, but to no avail.