prevent repaint on indirect refresh

fixes #953