Deactivate widget when not displayed.