aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:37:40 +0400
committerPatchew Applier <no-reply@patchew.org>2023-09-01 17:21:04 +0000
commit074b24094f34c3241956064cf7910bbe11642871 (patch)
tree74aa590f8ff176b277965a114516d8949e31dd8d /ui
parent177422789be54447cfc2d770145968058e5d0b5c (diff)
downloadqemu-074b24094f34c3241956064cf7910bbe11642871.zip
qemu-074b24094f34c3241956064cf7910bbe11642871.tar.gz
qemu-074b24094f34c3241956064cf7910bbe11642871.tar.bz2
ui/console: console_select() regardless of have_gfx
Even if we don't have a gfx listener, we should call displaychangelistener_display_console() which handle that case correctly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-7-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ui/console.c b/ui/console.c
index bec2d1a..14717a6 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1047,13 +1047,11 @@ void console_select(unsigned int index)
DisplayState *ds = s->ds;
active_console = s;
- if (ds->have_gfx) {
- QLIST_FOREACH(dcl, &ds->listeners, next) {
- if (dcl->con != NULL) {
- continue;
- }
- displaychangelistener_display_console(dcl, s, NULL);
+ QLIST_FOREACH (dcl, &ds->listeners, next) {
+ if (dcl->con != NULL) {
+ continue;
}
+ displaychangelistener_display_console(dcl, s, NULL);
}
dpy_text_resize(s, s->width, s->height);
text_console_update_cursor(NULL);