Fix some rendering issues in multi-monitor setup.