Random artifacts when show/hide layer

When I click the show/hide icon in the layer tree, random unexpected artifacts present on the canvas object. Even some unselected canvas object something show/hide. What is happening here?

(in the screen cap you can see one particular artifact, but about half way through others show up even though I’m still just clicking the show/hide icon).