diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-01-17 15:34:45 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 23:45:56 +0400 |
commit | de00b60db42dd88ce9aa7c77f5125a8a56308706 (patch) | |
tree | 8d18be00c2740d11f8c655ab748eaaab830533a6 /ui/console.c | |
parent | 385ac97f8fad0e6980c5dfea71132d5ecfb16608 (diff) | |
download | qemu-de00b60db42dd88ce9aa7c77f5125a8a56308706.zip qemu-de00b60db42dd88ce9aa7c77f5125a8a56308706.tar.gz qemu-de00b60db42dd88ce9aa7c77f5125a8a56308706.tar.bz2 |
ui: set cursor upon listener registration
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index 0dccbdd..35f8274 100644 --- a/ui/console.c +++ b/ui/console.c @@ -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); } |