Show/hide the cursor correctly.

It uses a counter, so we may need to call it more than once.
Hide pop up windows in full screen.

Otherwise, they get in the way even though you can't see them.
Merge pull request #1937 from unknownbrackets/windows-ui

Fix cursor reset and pop ups in fullscreen