display: only un-constrain display size once it is mapped

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.
This commit is contained in:
Marc-André Lureau 2012-11-26 20:37:30 +01:00
parent 03c3e4d08e
commit 0dca975d64

View File

@ -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;
}
}