Store cursor blink state per window.

Hide blink when window goes to background.
Restore when window goes to foreground again.