This is sort of a weird problem but I'll try and explain it best I can. I am on a Dell Latitude 6430u Ultrabook and I've been running Ubuntu 16.04 for about 10 months without any issues. Last week, my mouse began to not respond to clicks randomly. It started to happen when I put the computer to sleep (by closing the lid) and reopened it, but now it happens intermittently when using my laptop. I've been able to work around this by restarting, but sometimes this requires 3-4 restarts to get the mouse to work.
It seems like the mouse will work in one window that is in focus, but won't be able to switch windows.
I've tried running unity
in the terminal to restart it but this doesn't solve the issue.
I have a wireless mouse as well, but this has no effect.
Related questions: (answers don't work for me and some are for older versions)
Any ideas would be appreciated!