Set application mask.