[Spice-devel] [PATCH spice-gtk] widget: use scanout offset when using virgl

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jun 20 13:28:44 UTC 2016


ping

On Mon, Jun 13, 2016 at 7:11 PM, Marc-André Lureau
<marcandre.lureau at gmail.com> wrote:
> Ignoring the display area offset doesn't work nicely with virgl. Imho,
> this condition is wrong even in QXL case.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
> ---
>  src/spice-widget.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/spice-widget.c b/src/spice-widget.c
> index c528614..61a88fb 100644
> --- a/src/spice-widget.c
> +++ b/src/spice-widget.c
> @@ -309,7 +309,7 @@ void spice_display_widget_update_monitor_area(SpiceDisplay *display)
>      }
>
>      /* If only one head on this monitor, update the whole area */
> -    if(monitors->len == 1) {
> +    if (monitors->len == 1 && !d->egl.enabled) {
>          update_area(display, 0, 0, c->width, c->height);
>      } else {
>          update_area(display, c->x, c->y, c->width, c->height);
> --
> 2.7.4
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list