Blame SOURCES/0025-kiosk-don-t-attempt-to-hide-windows-when-disconnecti.patch

4ab194
From b9b188ca00aa60e4ebf35bde4dba68f75c0ae226 Mon Sep 17 00:00:00 2001
4ab194
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
4ab194
Date: Tue, 10 Jun 2014 15:14:20 +0300
4ab194
Subject: [PATCH] kiosk: don't attempt to hide windows when disconnecting
4ab194
4ab194
Get rid of the following warning:
4ab194
(virt-viewer:7262): virt-viewer-WARNING **: Can't hide windows in kiosk mode
4ab194
4ab194
https://bugzilla.redhat.com/show_bug.cgi?id=1107518
4ab194
---
4ab194
 src/virt-viewer-app.c | 4 +++-
4ab194
 1 file changed, 3 insertions(+), 1 deletion(-)
4ab194
4ab194
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
4ab194
index e584e9b..956aecb 100644
4ab194
--- a/src/virt-viewer-app.c
4ab194
+++ b/src/virt-viewer-app.c
4ab194
@@ -1304,7 +1304,9 @@ virt_viewer_app_disconnected(VirtViewerSession *session G_GNUC_UNUSED,
4ab194
     VirtViewerAppPrivate *priv = self->priv;
4ab194
     gboolean connect_error = !priv->connected && !priv->cancelled;
4ab194
 
4ab194
-    virt_viewer_app_hide_all_windows(self);
4ab194
+    if (!priv->kiosk)
4ab194
+        virt_viewer_app_hide_all_windows(self);
4ab194
+
4ab194
     if (priv->quitting)
4ab194
         gtk_main_quit();
4ab194