Prevent unnecessary redraw calls