[virt-tools-list] [PATCH virt-viewer] display: only un-constrain display size once it is mapped

Marc-André Lureau marcandre.lureau at gmail.com
Mon Nov 26 19:39:29 UTC 2012


Wait until the widget is actually on screen before removing its
size constrain. This solves 50x50 window secondary window size
when connecting to a multi-monitor spice guest.
---
 src/virt-viewer-display.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index e5cdeb7..099ac76 100644
--- a/src/virt-viewer-display.c
+++ b/src/virt-viewer-display.c
@@ -448,7 +448,8 @@ end:
      */
     if (priv->dirty) {
         g_idle_add(virt_viewer_display_idle, widget);
-        priv->dirty = FALSE;
+        if (gtk_widget_get_mapped(widget))
+            priv->dirty = FALSE;
     }
 }
 
-- 
1.7.11.7




More information about the virt-tools-list mailing list