Support grabbing mouse cursor when taking a screenshot.