Editor window is not refreshing

Sometimes when I launch editor it doesn’t refresh itself. When I move my mouse cursor over the window it starts to refresh the area under the mouse cursor.

It happens about once in a week. It disappears after a couple of close/open actions.

I use Ubuntu 16.04 with GTX 1050 with properly installed drivers.