It also unhides the cursor if hidden, restores graphics card gamma tables if
they’ve been altered, and restores other low-level display system state, like
centering the mouse cursor on screen 0 of a multi-X-Screen Linux setup. For
Matlab it implements a workaround for Matlab Java GUI bugs related to resolution
switching and entering/leaving fullscreen display mode.