[virt-tools-list] [PATCH virt-viewer] spice: update fullscreen state on display creation

Christophe Fergeau cfergeau at redhat.com
Thu Mar 14 10:06:27 UTC 2013


On Wed, Mar 13, 2013 at 08:44:57PM +0100, Marc-André Lureau wrote:
> This ensure self->priv->auto_resize has correct value.
> And allow changing guest resolution when started in fullscreen.

ACK. Not new in this patch, but a bit surprised that _new() does a lot of
setup work, while _init() is mostly empty.

Christophe

> 
> https://bugzilla.redhat.com/show_bug.cgi?id=873298
> ---
>  src/virt-viewer-display-spice.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c
> index 1e17ca5..6a7f4a9 100644
> --- a/src/virt-viewer-display-spice.c
> +++ b/src/virt-viewer-display-spice.c
> @@ -318,6 +318,7 @@ virt_viewer_display_spice_new(VirtViewerSessionSpice *session,
>                                        G_CALLBACK(enable_accel_changed), self, 0);
>      virt_viewer_signal_connect_object(app, "notify::fullscreen",
>                                        G_CALLBACK(fullscreen_changed), self, 0);
> +    fullscreen_changed(app, NULL, self);
>      enable_accel_changed(app, NULL, self);
>  
>      return GTK_WIDGET(self);
> -- 
> 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/20130314/be94c632/attachment.sig>


More information about the virt-tools-list mailing list