I tested this leaving the mouse pointer focused on a gnome-terminal when I closed the lid and did not have the same result. This does appear to be a transient issue related to suspend/resume. Its gonna be hard to track down. -- Nautilus grabs mouse pointer post suspend/resume https://launchpad.net/bugs/81481