Merge "Do not set insets changed for invisible window" into tm-dev