[virt-tools-list] [PATCH virt-viewer 4/4] kiosk: don't attempt to hide windows when disconnecting

Marc-André Lureau marcandre.lureau at gmail.com
Tue Jun 10 12:18:11 UTC 2014


From: Marc-André Lureau <marcandre.lureau at redhat.com>

Get rid of the following warning:
(virt-viewer:7262): virt-viewer-WARNING **: Can't hide windows in kiosk mode

https://bugzilla.redhat.com/show_bug.cgi?id=1107518
---
 src/virt-viewer-app.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 6c87c30..38c7c57 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1317,7 +1317,9 @@ virt_viewer_app_disconnected(VirtViewerSession *session G_GNUC_UNUSED,
     VirtViewerAppPrivate *priv = self->priv;
     gboolean connect_error = !priv->connected && !priv->cancelled;
 
-    virt_viewer_app_hide_all_windows(self);
+    if (!priv->kiosk)
+        virt_viewer_app_hide_all_windows(self);
+
     if (priv->quitting)
         gtk_main_quit();
 
-- 
1.9.3




More information about the virt-tools-list mailing list