[Spice-devel] [spice-gtk PATCH] Handle single headed monitors that have a non-zero x, y config

Sandy Stutsman sstutsma at redhat.com
Thu Jun 25 07:58:49 PDT 2015


Hello

----- Original Message -----
> From: "Marc-André Lureau" <mlureau at redhat.com>
> To: "Sandy Stutsman" <sstutsma at redhat.com>
> Cc: spice-devel at lists.freedesktop.org
> Sent: Thursday, June 25, 2015 7:12:33 AM
> Subject: Re: [Spice-devel] [spice-gtk PATCH] Handle single headed monitors that have a non-zero x, y config
> 
> Hi
> 
> ----- Original Message -----
> > > diff --git a/src/spice-widget.c b/src/spice-widget.c
> > > index 59f9792..3ec2e65 100644
> > > --- a/src/spice-widget.c
> > > +++ b/src/spice-widget.c
> > > @@ -293,7 +293,12 @@ static void update_monitor_area(SpiceDisplay
> > > *display)
> > >          goto whole;
> > >      }
> > >  
> > > -    update_area(display, c->x, c->y, c->width, c->height);
> > > +    /* If only one head on this monitor, update the whole area */
> > > +    if(monitors->len == 1) {
> > > +        update_area(display, 0, 0, c->width, c->height);
> > > +    } else {
> > > +        update_area(display, c->x, c->y, c->width, c->height);
> > > +    }
> > 
> > The linux qxl driver can't have a single monitor on (0,0)?
> 
> On !(0,0), sorry.
> 
I believe that for linux the primary monitor always has 0,0 origina and
if there is only a single monitor, it should be the primary one, yes?


More information about the Spice-devel mailing list