diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-09-12 13:43:00 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-10-01 11:29:03 +0200 |
commit | 6624c38d11d0bdb45579c3cc8c7499af79b20564 (patch) | |
tree | e06fff51ccd0441a0b6498ed673cb393ded2997b /ui | |
parent | 07f426c35eddd79388a23d11cb278600d7e3831d (diff) |
sdl2: show console #0 unconditionally
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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/sdl2.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |