[Spice-devel] Problem with dual-display full-screen client on X

Andrew Cathrow acathrow at redhat.com
Sun May 20 13:51:40 PDT 2012



----- Original Message -----
> From: "Noel Van Hook" <noel.van.hook at intelligraphics.com>
> To: "Christophe Fergeau" <cfergeau at redhat.com>
> Cc: spice-devel at lists.freedesktop.org
> Sent: Monday, May 14, 2012 12:07:08 PM
> Subject: Re: [Spice-devel] Problem with dual-display full-screen client on X
> 
> On Mon, May 14, 2012 at 8:54 AM, Christophe Fergeau
> <cfergeau at redhat.com> wrote:
> > Hey,
> >
> > On Fri, May 11, 2012 at 04:33:43PM -0500, Noel Van Hook wrote:
> >> Background information:
> >> I am running the guest OS (CentOS) with dual heads.
> >> I am also running the client on CentOS.
> >> When I open the client, two client windows appear (spice0 and
> >> spice1),
> >> and all is well with the world.
> >> The machine I am running the client on has two monitors, and is
> >> XRandR
> >> compliant.
> >>
> >> The bug:
> >> When I press Ctrl-Shift-F11 to change the guest to full-screen,
> >> both
> >> monitors change resolution, and the spice0 window properly appears
> >> in
> >> full screen mode on the left monitor.  The spice1 window never
> >> appears
> >> anywhere, and the right monitor goes black with an "X" cursor on
> >> it.
> >>
> >> I did some debugging, and it appears as though my window manager
> >> may
> >> be interfering with the clients attempt to use the second monitor.
> >>
> >> In the client code,  RedWindow::show() calls  RedWindow::move() to
> >> move the right client window onto the right monitor.
> >>  RedWindow::move() in turn calls XMoveWindow(), but the
> >>  XMoveWindow
> >> call appears to be ignored.  I suspect it is being intercepted by
> >> my
> >> window manager, because if, right before I call RedWindow::move(),
> >> I
> >> set the override_redirect attribute of _win to "true", it works
> >> fine.
> >>  (I then set it back to "false" when we leave fullscreen mode).
> >>
> >> So, this appears to fix it... but is it the right fix?  Or have I
> >> just
> >> patched a symptom of a deeper problem?
> >
> > This code in spice-client is quite hairy, and these days it's
> > highly
> > recommended to use virt-viewer/remote-viewer, did you test if they
> > are
> > doing the right thing on your setup ?
> >
> 
> I am not familiar with virt-viewer or remote-viewer, but it sounds
> like they are alternatives to spicec? If that is the case, it doesn't
> help me.  I don't get to choose which viewer to use, I just get to
> make it work. :-)

All future development is going into remote-viewer, so I'd advise moving forward.

> Noel
> 
> --
> Noel Van Hook - Intelligraphics, Inc
> 522 Cooper Ave N
> Red Lodge, MT 59068
> Noel.Van.Hook at Intelligraphics.com  (425) 770-5561
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list