When entering overlay mode if the cursor was previously grabbed we should restore the state when exiting overlay mode. This will also correct the pointer setting it to NONE or SQUARE depending on the prior grab state.
When entering overlay mode if the cursor was previously grabbed we should restore the state when exiting overlay mode. This will also correct the pointer setting it to NONE or SQUARE depending on the prior grab state.