From: Dongwon Kim
Adding a callback for window-state-event that resets the flag, 'visible'
when associated window is minimized or restored. When minimizing, it cancels
any of queued draw events associated with the VC.
Cc: Marc-André Lureau
Cc: Gerd Hoffmann
Cc: Vivek Kasireddy
Signed-off-by:
Add a callback for window-state-event that resets vc->gfx.visible when
associated window is minimized and vice versa.
Cc: Gerd Hoffmann
Cc: Daniel P. Berrangé
Cc: Markus Armbruster
Cc: Philippe Mathieu-Daudé
Cc: Marc-André Lureau
Cc: Thomas Huth
Cc: Vivek Kasireddy
Signed-off-by: Dongwon Ki