GNOME Bugzilla – Bug 688717
If the displayed VM goes into a "weird" state we don't exit to collection view
Last modified: 2016-03-31 14:02:01 UTC
If you're showing a VM and it gets a state change, for instance it gets paused from outside gnome-boxes, or the guest decides to go into S3 sleep mode then we don't currently exit the VM, but rather keep showing something useless that you can't do anything with. In the case of pause we show a frozen vm, in the case of sleep we show a grey screen (as we get a display !ready signal and hide the display).
Created attachment 229465 [details] [review] On display disconnect, only go to COLLECTION for current item If the display was still around due to e.g. keeping it alive for usb device redirection we don't want to go to collection view if another machine is showing.
Created attachment 229466 [details] [review] Exit to collection view if the VM goes to a non-running state This is required for instance for the SLEEP and PAUSE mode, as in these modes we can't use the spice display widget, but the spice connection is not disconnected, so we don't currrently exit to the collection view due to that.
There is one additional issue here, if the guest goes to S3 sleep mode we seem to wake it up when closing the spice connection due to going to collection view. This behaviour is still better than the old one of showing a grey window though, and i'm not sure how important it is to fix this since we disable s3 support for all new VMs these days.
Review of attachment 229465 [details] [review]: Looks good
Review of attachment 229466 [details] [review]: Lots of conditions to test, but makes sense.
Attachment 229465 [details] pushed as c03ea76 - On display disconnect, only go to COLLECTION for current item Attachment 229466 [details] pushed as 0ed0307 - Exit to collection view if the VM goes to a non-running state