aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-01-17 15:34:45 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-03-13 23:45:56 +0400
commitde00b60db42dd88ce9aa7c77f5125a8a56308706 (patch)
tree8d18be00c2740d11f8c655ab748eaaab830533a6
parent385ac97f8fad0e6980c5dfea71132d5ecfb16608 (diff)
ui: set cursor upon listener registration
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
-rw-r--r--ui/console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index 0dccbdd4be..35f8274aab 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);
}