diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-03-19 12:08:40 +0900 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-03-20 10:27:54 +0400 |
| commit | d4c199566f6fa5de4afa344712462cfd322de9d0 (patch) | |
| tree | ad3c22a1aedc08ddfbd901f2b01e90d215b39855 /include/ui/console.h | |
| parent | 271a197425528f4448b3d351be25995abe901374 (diff) | |
| download | focaccia-qemu-d4c199566f6fa5de4afa344712462cfd322de9d0.tar.gz focaccia-qemu-d4c199566f6fa5de4afa344712462cfd322de9d0.zip | |
ui/vnc: Do not use console_select()
console_select() is shared by other displays and a console_select() call from one of them triggers console switching also in ui/curses, circumventing key state reinitialization that needs to be performed in preparation and resulting in stuck keys. Use its internal state to track the current active console to prevent such a surprise console switch. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20240319-console-v2-2-3fd6feef321a@daynix.com>
Diffstat (limited to 'include/ui/console.h')
| -rw-r--r-- | include/ui/console.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index a4a49ffc64..3729d2db29 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -413,6 +413,7 @@ void qemu_console_early_init(void); void qemu_console_set_display_gl_ctx(QemuConsole *con, DisplayGLCtx *ctx); +QemuConsole *qemu_console_lookup_default(void); QemuConsole *qemu_console_lookup_by_index(unsigned int index); QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head); QemuConsole *qemu_console_lookup_by_device_name(const char *device_id, |