[virt-tools-list] [PATCH virt-viewer] spice: only autoresize once with screen size in fullscreen

Marc-André Lureau marcandre.lureau at gmail.com
Thu Oct 18 08:44:09 UTC 2012


Hi

On Thu, Oct 18, 2012 at 10:14 AM, Christophe Fergeau
<cfergeau at redhat.com> wrote:
>> +    if (self->priv->auto_resize == AUTO_RESIZE_FULLSCREEN) {
>> +        GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(self));
>> +        dw = gdk_screen_get_width(screen);
>> +        dh = gdk_screen_get_height(screen);
>> +    }
>> +
>>      if (virt_viewer_display_get_zoom(VIRT_VIEWER_DISPLAY(self))) {
>>          zoom = virt_viewer_display_get_zoom_level(VIRT_VIEWER_DISPLAY(self));
>
> After setting dw/dh to the size of the screen, we then apply the zoom level
> to it. Are we guaranteed that zoom will disabled or less than 100 at this
> point, or should we ignore zoom after going fullscreen?

Imho, zoom should still be applied.

-- 
Marc-André Lureau




More information about the virt-tools-list mailing list