Fixes the redrawing issue on mouse events when placed inside split views