I'd squash this to the previous patch.

On Thu, 2019-01-17 at 16:14 -0600, Jonathon Jongsma wrote:
> When the agent gets a new device info message (from the daemon), we need
> to re-calculate the guest output map and send that information back down
> to the daemon so that it can handle mouse input events correctly.
> ---
>  src/vdagent/x11-randr.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/vdagent/x11-randr.c b/src/vdagent/x11-randr.c
> index 5749ae7..283dbc8 100644
> --- a/src/vdagent/x11-randr.c
> +++ b/src/vdagent/x11-randr.c
> @@ -865,6 +865,9 @@ void vdagent_x11_handle_graphics_device_info(struct 
> vdagent_x11 *x11, uint8_t *d
>          device_display_info = (VDAgentDeviceDisplayInfo*) ((char*) 
> device_display_info +
>              sizeof(VDAgentDeviceDisplayInfo) + 
> device_display_info->device_address_len);
>      }
> +
> +    // make sure daemon is up-to-date with (possibly updated) device IDs
> +    vdagent_x11_send_daemon_guest_xorg_res(x11, 1);
>  }
>  
>  static int get_output_index_for_display_id(struct vdagent_x11 *x11, int 
> display_id)
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to