[virt-tools-list] [PATCH virt-viewer 1/2] virt-viewer-display-spice: Skip monitor info in fullscreen-auto-conf mode

Christophe Fergeau cfergeau at redhat.com
Fri Mar 22 14:15:38 UTC 2013


On Fri, Mar 22, 2013 at 02:14:27PM +0100, Marc-André Lureau wrote:
> From: Hans de Goede <hdegoede at redhat.com>
> 
> When we are in fullscreen-auto-conf virt-viewer-session-spice sends a
> monitor-info message to the agent with the exact client monitor info, and
> virt-viewer-display-spice should not override that.
> 
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> Acked-by: Marc-André Lureau <marcandre.lureau at redhat.com>

Does this mean this is pushed already? Looks good to me in any case.

Christophe

> ---
>  src/virt-viewer-display-spice.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c
> index fb1f789..4ce8641 100644
> --- a/src/virt-viewer-display-spice.c
> +++ b/src/virt-viewer-display-spice.c
> @@ -262,8 +262,15 @@ fullscreen_changed(VirtViewerApp *app,
>                     GParamSpec *pspec G_GNUC_UNUSED,
>                     VirtViewerDisplaySpice *self)
>  {
> -    self->priv->auto_resize = virt_viewer_app_get_fullscreen(app) ?
> -        AUTO_RESIZE_FULLSCREEN : AUTO_RESIZE_ALWAYS;
> +    if (virt_viewer_app_get_fullscreen(app)) {
> +        gboolean auto_conf;
> +        g_object_get(app, "fullscreen-auto-conf", &auto_conf, NULL);
> +        if (auto_conf)
> +            self->priv->auto_resize = AUTO_RESIZE_NEVER;
> +        else
> +            self->priv->auto_resize = AUTO_RESIZE_FULLSCREEN;
> +    } else
> +        self->priv->auto_resize = AUTO_RESIZE_ALWAYS;
>  }
>  
>  GtkWidget *
> -- 
> 1.8.1.1.439.g50a6b54
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20130322/7513a26e/attachment.sig>


More information about the virt-tools-list mailing list