[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [PATCHv2 virt-viewer 09/10] kiosk: don't open extra monitors




----- Mensaje original -----
> On Fri, Aug 16, 2013 at 09:47:45PM +0200, Marc-André Lureau wrote:
> > In kiosk mode, we don't want new monitors windows that wouldn't fit on
> > the client monitors to come up.
> > ---
> >  src/virt-viewer-app.c | 12 ++++++++++--
> >  1 file changed, 10 insertions(+), 2 deletions(-)
> > 
> > diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> > index 844cfa9..f4bcecc 100644
> > --- a/src/virt-viewer-app.c
> > +++ b/src/virt-viewer-app.c
> > @@ -734,8 +734,16 @@ virt_viewer_app_display_added(VirtViewerSession
> > *session G_GNUC_UNUSED,
> >      if (nth == 0) {
> >          window = priv->main_window;
> >      } else {
> > -        g_return_if_fail(virt_viewer_app_get_nth_window(self, nth) ==
> > NULL);
> > -        window = virt_viewer_app_window_new(self, nth);
> > +        window = virt_viewer_app_get_nth_window(self, nth);
> > +        if (window == NULL) {
> > +            if (priv->kiosk) {
> > +                /* don't show extra monitors that don't fit on client */
> > +                g_object_unref(display);
> 
> This deserves a g_debug log I think (?)

Ok

> Christophe
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list redhat com
> https://www.redhat.com/mailman/listinfo/virt-tools-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]