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

Daniel P. Berrange berrange at redhat.com
Mon Nov 26 20:28:41 UTC 2012


On Mon, Nov 26, 2012 at 08:39:29PM +0100, Marc-André Lureau wrote:
> 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;
>      }
>  }

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list