More robust function (for the bar/doorhanger + accept/reject use of cam/mic).