Skip to content

Commit

Permalink
sdl2: show console #0 unconditionally
Browse files Browse the repository at this point in the history
Otherwise sdl2 will show no window in case no graphical
display device is present.

Reproducer: qemu -nodefaults -display sdl -serial vc

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20180912114300.6976-1-kraxel@redhat.com
  • Loading branch information
kraxel committed Oct 1, 2018
1 parent 07f426c commit 6624c38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/sdl2.c
Expand Up @@ -806,7 +806,8 @@ static void sdl2_display_init(DisplayState *ds, DisplayOptions *o)
for (i = 0; i < sdl2_num_outputs; i++) {
QemuConsole *con = qemu_console_lookup_by_index(i);
assert(con != NULL);
if (!qemu_console_is_graphic(con)) {
if (!qemu_console_is_graphic(con) &&
qemu_console_get_index(con) != 0) {
sdl2_console[i].hidden = true;
}
sdl2_console[i].idx = i;
Expand Down

0 comments on commit 6624c38

Please sign in to comment.