summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Thibault2020-09-14 12:06:37 +0200
committerGerd Hoffmann2020-10-14 10:20:26 +0200
commit41d004d8af59885da2c21460a73898b1aa09690f (patch)
tree4cb23c03c0eb6be23d365acf566750d6d1a70ab2
parentinput-linux: Reset il->fd handler before closing it (diff)
downloadqemu-41d004d8af59885da2c21460a73898b1aa09690f.tar.gz
qemu-41d004d8af59885da2c21460a73898b1aa09690f.tar.xz
qemu-41d004d8af59885da2c21460a73898b1aa09690f.zip
ui: Fix default window_id value
./chardev/baum.c expects the default window_id value to be -1, and not 0 which could be confused with a proper window id (when numbered from 0 by the ui backend). This fixes getting Braille output with the curses and gtk frontends. Fixes: f29b3431f62 ("console: move window ID code from baum to sdl") Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20200914100637.eeommoflirxrgaeh@function> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--ui/console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c
index 54a74c0b16..820e408170 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1310,6 +1310,7 @@ static QemuConsole *new_console(DisplayState *ds, console_type_t console_type,
}
s->ds = ds;
s->console_type = console_type;
+ s->window_id = -1;
if (QTAILQ_EMPTY(&consoles)) {
s->index = 0;