[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 07/23] vl: simplify display_remote logic
From: |
marcandre . lureau |
Subject: |
[PATCH v7 07/23] vl: simplify display_remote logic |
Date: |
Mon, 30 Oct 2023 14:47:38 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Bump the display_remote variable when the -vnc option is parsed, just
like -spice.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
---
system/vl.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/system/vl.c b/system/vl.c
index de6df188da..b07805d476 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -1401,11 +1401,6 @@ static void qemu_create_default_devices(void)
#endif
}
-#if defined(CONFIG_VNC)
- if (!QTAILQ_EMPTY(&(qemu_find_opts("vnc")->head))) {
- display_remote++;
- }
-#endif
if (dpy.type == DISPLAY_TYPE_DEFAULT && !display_remote) {
if (!qemu_display_find_default(&dpy)) {
dpy.type = DISPLAY_TYPE_NONE;
@@ -3350,6 +3345,7 @@ void qemu_init(int argc, char **argv)
#ifdef CONFIG_VNC
case QEMU_OPTION_vnc:
vnc_parse(optarg);
+ display_remote++;
break;
#endif
case QEMU_OPTION_no_acpi:
--
2.41.0
- [PATCH v7 00/23] Make Pixman an optional dependency, marcandre . lureau, 2023/10/30
- [PATCH v7 01/23] build-sys: add a "pixman" feature, marcandre . lureau, 2023/10/30
- [PATCH v7 02/23] build-sys: drop needless warning pragmas for old pixman, marcandre . lureau, 2023/10/30
- [PATCH v7 03/23] ui: compile out some qemu-pixman functions when !PIXMAN, marcandre . lureau, 2023/10/30
- [PATCH v7 04/23] ui: add pixman-minimal.h, marcandre . lureau, 2023/10/30
- [PATCH v7 05/23] vl: drop needless -spice checks, marcandre . lureau, 2023/10/30
- [PATCH v7 06/23] qemu-options: define -vnc only #ifdef CONFIG_VNC, marcandre . lureau, 2023/10/30
- [PATCH v7 07/23] vl: simplify display_remote logic,
marcandre . lureau <=
- [PATCH v7 08/23] vl: move display early init before default devices, marcandre . lureau, 2023/10/30
- [PATCH v7 09/23] ui/console: allow to override the default VC, marcandre . lureau, 2023/10/30
- [PATCH v7 10/23] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/10/30
- [PATCH v7 11/23] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/10/30
- [PATCH v7 12/23] virtio-gpu: replace PIXMAN for region/rect test, marcandre . lureau, 2023/10/30
- [PATCH v7 13/23] ui/console: when PIXMAN is unavailable, don't draw placeholder msg, marcandre . lureau, 2023/10/30
- [PATCH v7 14/23] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/10/30
- [PATCH v7 15/23] ui/gl: opengl doesn't require PIXMAN, marcandre . lureau, 2023/10/30
- [PATCH v7 16/23] ui/vnc: VNC requires PIXMAN, marcandre . lureau, 2023/10/30
- [PATCH v7 17/23] ui/spice: SPICE/QXL requires PIXMAN, marcandre . lureau, 2023/10/30