Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco authored and Patchew Applier committed Sep 1, 2023
1 parent 1774227 commit 074b240
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ui/console.c
Expand Up @@ -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);
Expand Down

0 comments on commit 074b240

Please sign in to comment.