Strange coloured border appearing around windows [duplicate]
The problem is with the latest nVidia drivers (v378). Even if you have been using v375 before, it seems that the same issue was backported into some of it's minor versions. Try rolling back to v367, as described in this answer (notice that you need to disable the repo, otherwise 375 gets installed when calling sudo apt-get install nvidia-367)