mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-28 20:41:52 -06:00
ui: set cursor upon listener registration
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
385ac97f8f
commit
de00b60db4
1 changed files with 3 additions and 0 deletions
|
@ -1662,6 +1662,9 @@ void register_displaychangelistener(DisplayChangeListener *dcl)
|
||||||
con = active_console;
|
con = active_console;
|
||||||
}
|
}
|
||||||
displaychangelistener_display_console(dcl, con, dcl->con ? &error_fatal : NULL);
|
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);
|
text_console_update_cursor(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue