for tab or window move out