[virt-tools-list] [PATCH virt-viewer] vnc: implement release_cursor()

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jul 8 16:46:10 UTC 2013


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));
 }
-- 
1.8.3.rc1.49.g8d97506




More information about the virt-tools-list mailing list