Mouse, tab, and focus rect optimization.