|
@@ -988,10 +988,10 @@ static void vnc_mouse_set(DisplayChangeListener *dcl,
|
|
|
|
|
|
static int vnc_cursor_define(VncState *vs)
|
|
|
{
|
|
|
- QEMUCursor *c = vs->vd->cursor;
|
|
|
+ QEMUCursor *c = qemu_console_get_cursor(vs->vd->dcl.con);
|
|
|
int isize;
|
|
|
|
|
|
- if (!vs->vd->cursor) {
|
|
|
+ if (!c) {
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
@@ -1029,10 +1029,7 @@ static void vnc_dpy_cursor_define(DisplayChangeListener *dcl,
|
|
|
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
|
|
|
VncState *vs;
|
|
|
|
|
|
- cursor_unref(vd->cursor);
|
|
|
g_free(vd->cursor_mask);
|
|
|
-
|
|
|
- vd->cursor = cursor_ref(vd->cursor);
|
|
|
vd->cursor_msize = cursor_get_mono_bpl(c) * c->height;
|
|
|
vd->cursor_mask = g_malloc0(vd->cursor_msize);
|
|
|
cursor_get_mono_mask(c, 0, vd->cursor_mask);
|