[virt-tools-list] [PATCH virt-viewer] vnc: implement release_cursor()
Hans de Goede
hdegoede at redhat.com
Mon Jul 8 17:59:59 UTC 2013
ACK.
On 07/08/2013 06:46 PM, Marc-André Lureau wrote:
> Error reported in:
> https://bugzilla.redhat.com/show_bug.cgi?id=885200
> ---
> src/virt-viewer-display-vnc.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/src/virt-viewer-display-vnc.c b/src/virt-viewer-display-vnc.c
> index c0bcf13..32119bc 100644
> --- a/src/virt-viewer-display-vnc.c
> +++ b/src/virt-viewer-display-vnc.c
> @@ -53,6 +53,14 @@ virt_viewer_display_vnc_finalize(GObject *obj)
>
>
> static void
> +virt_viewer_display_vnc_release_cursor(VirtViewerDisplay *display)
> +{
> + VirtViewerDisplayVnc *self = VIRT_VIEWER_DISPLAY_VNC(display);
> +
> + vnc_display_force_grab(self->priv->vnc, FALSE);
> +}
> +
> +static void
> virt_viewer_display_vnc_class_init(VirtViewerDisplayVncClass *klass)
> {
> VirtViewerDisplayClass *dclass = VIRT_VIEWER_DISPLAY_CLASS(klass);
> @@ -63,6 +71,7 @@ virt_viewer_display_vnc_class_init(VirtViewerDisplayVncClass *klass)
> dclass->send_keys = virt_viewer_display_vnc_send_keys;
> dclass->get_pixbuf = virt_viewer_display_vnc_get_pixbuf;
> dclass->close = virt_viewer_display_vnc_close;
> + dclass->release_cursor = virt_viewer_display_vnc_release_cursor;
>
> g_type_class_add_private(klass, sizeof(VirtViewerDisplayVncPrivate));
> }
>
More information about the virt-tools-list
mailing list