Ubuntu – Strange coloured border appearing around windows

16.04displaygraphics

Recently, I have noticed that on most applications I have on Ubuntu 16.04, when I load the application, the window is displayed with a strange multi-coloured border (see the images below). If I maximise the window though, the border disappears and the window is displayed as expected.

This started happening for no apparent reason. If I reboot my machine, things return to normal at first, but after a while the problem comes back.

The issue occurs on most applications, including Nautilus, Software Centre, Terminal, System Settings, etc… I also get the same border appearing when I right click on the desktop, with the border surrounding the pop-up menu.

However, I have noticed that it does not happen on Chrome, but it does happen on other applications which did not come with Ubuntu by default.

Any ideas on what is causing the problem? Thanks!

enter image description here
enter image description here

Best Answer

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)