Merge "Move visible insets calculation to client"