[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 9/9] ui: Fix default window_id value
From: |
Gerd Hoffmann |
Subject: |
[PULL 9/9] ui: Fix default window_id value |
Date: |
Wed, 14 Oct 2020 10:21:49 +0200 |
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
./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>
---
ui/console.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui/console.c b/ui/console.c
index 54a74c0b16c9..820e4081709d 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;
--
2.27.0
- [PULL 0/9] Ui 20201014 patches, Gerd Hoffmann, 2020/10/14
- [PULL 3/9] curses: Fixes curses compiling errors., Gerd Hoffmann, 2020/10/14
- [PULL 6/9] vnc-stubs: Allow -vnc none, Gerd Hoffmann, 2020/10/14
- [PULL 1/9] qemu-edid: drop cast, Gerd Hoffmann, 2020/10/14
- [PULL 5/9] configure: Fixes ncursesw detection under msys2/mingw by convert them to meson, Gerd Hoffmann, 2020/10/14
- [PULL 8/9] input-linux: Reset il->fd handler before closing it, Gerd Hoffmann, 2020/10/14
- [PULL 4/9] win32: Simplify gmtime_r detection not depends on if _POSIX_C_SOURCE are defined on msys2/mingw, Gerd Hoffmann, 2020/10/14
- [PULL 2/9] curses: Fixes compiler error that complain don't have langinfo.h on msys2/mingw, Gerd Hoffmann, 2020/10/14
- [PULL 7/9] SDL: enable OpenGL context creation, Gerd Hoffmann, 2020/10/14
- [PULL 9/9] ui: Fix default window_id value,
Gerd Hoffmann <=
- Re: [PULL 0/9] Ui 20201014 patches, Peter Maydell, 2020/10/14