Merge change 3879 into donut

* changes:
  ACTV: getWindowVisibility() instead of private attach count