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

Re: [virt-tools-list] [PATCH 1/5] virt-viewer-display-spice: Pass real monitor coordinates in fullscreen



ack (wasn't this already ack?)

On Wed, Feb 6, 2013 at 2:39 PM, Hans de Goede <hdegoede redhat com> wrote:
> Rather then always passing +0+0
>
> Signed-off-by: Hans de Goede <hdegoede redhat com>
> ---
>  src/virt-viewer-display-spice.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c
> index 6edb748..063188a 100644
> --- a/src/virt-viewer-display-spice.c
> +++ b/src/virt-viewer-display-spice.c
> @@ -189,6 +189,7 @@ virt_viewer_display_spice_size_allocate(VirtViewerDisplaySpice *self,
>      gdouble dw = allocation->width, dh = allocation->height;
>      guint zoom = 100;
>      guint nth;
> +    gint x = 0, y = 0;
>
>      if (virt_viewer_display_get_auto_resize(VIRT_VIEWER_DISPLAY(self)) == FALSE)
>          return;
> @@ -202,6 +203,8 @@ virt_viewer_display_spice_size_allocate(VirtViewerDisplaySpice *self,
>          int n = gdk_screen_get_monitor_at_window(screen,
>                                       gtk_widget_get_window(GTK_WIDGET(self)));
>          gdk_screen_get_monitor_geometry(screen, n, &monitor);
> +        x = monitor.x;
> +        y = monitor.y;
>          dw = monitor.width;
>          dh = monitor.height;
>      }
> @@ -217,7 +220,7 @@ virt_viewer_display_spice_size_allocate(VirtViewerDisplaySpice *self,
>
>      if (self->priv->auto_resize != AUTO_RESIZE_NEVER)
>          spice_main_set_display(get_main(VIRT_VIEWER_DISPLAY(self)),
> -                               nth, 0, 0, dw, dh);
> +                               nth, x, y, dw, dh);
>      if (self->priv->auto_resize == AUTO_RESIZE_FULLSCREEN)
>          self->priv->auto_resize = AUTO_RESIZE_NEVER;
>  }
> --
> 1.8.1
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list redhat com
> https://www.redhat.com/mailman/listinfo/virt-tools-list



-- 
Marc-André Lureau


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