]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: set cursor upon listener registration
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 17 Jan 2023 11:34:45 +0000 (15:34 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 13 Mar 2023 19:45:56 +0000 (23:45 +0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ui/console.c

index 0dccbdd4be89e8b69aa01f48ffffc20f576fb2b9..35f8274aab30ad5c341d6693fa46b7817726fda6 100644 (file)
@@ -1662,6 +1662,9 @@ void register_displaychangelistener(DisplayChangeListener *dcl)
         con = active_console;
     }
     displaychangelistener_display_console(dcl, con, dcl->con ? &error_fatal : NULL);
+    if (con && con->cursor && dcl->ops->dpy_cursor_define) {
+        dcl->ops->dpy_cursor_define(dcl, con->cursor);
+    }
     text_console_update_cursor(NULL);
 }