Re: [linux/vd-agent] vdagent: Do not send empty screen resolution messages

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

 



> 
> From: Victor Toso <me@xxxxxxxxxxxxxx>
> 
> Easier to trigger on Wayland guest by running
> 
> > xrandr --output XWAYLAND0 --rotate left
> 
> In current master, this causes the spice-vdagentd to disconnect from
> the client. In 0.18 branch (latest release), mouse becomes unusable as
> mentioned in the referred bug below.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1641723
> 
> Signed-off-by: Victor Toso <victortoso@xxxxxxxxxx>
> ---
>  src/vdagent/x11-randr.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/vdagent/x11-randr.c b/src/vdagent/x11-randr.c
> index c5fba51..81a2cd6 100644
> --- a/src/vdagent/x11-randr.c
> +++ b/src/vdagent/x11-randr.c
> @@ -959,6 +959,12 @@ no_info:
>          }
>      }
>  
> +    if (screen_count == 0) {
> +        syslog(LOG_DEBUG, "Screen count is zero, are we on wayland?");
> +        g_free(res);
> +        return;
> +    }
> +
>      if (x11->debug) {
>          syslog(LOG_DEBUG, "Sending guest screen resolutions to vdagentd:");
>          for (i = 0; i < screen_count; i++) {

Sounds reasonable.

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

On the other hand looks like:
- a bug in Wayland X11 emulation. Why Xrandr function fails?
- partial. What happens to screen size? Does the mouse is limited
  in a different are (can you move it all around the screen?)
  Or maybe later another event with correct values arrives?

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]