[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v3 07/25] vl: simplify display_remote logic
|
From: |
marcandre . lureau |
|
Subject: |
[PULL v3 07/25] vl: simplify display_remote logic |
|
Date: |
Tue, 7 Nov 2023 14:15:05 +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 19aef762e4..e9819408df 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
- [PULL v3 00/25] Pixman patches, marcandre . lureau, 2023/11/07
- [PULL v3 01/25] build-sys: add a "pixman" feature, marcandre . lureau, 2023/11/07
- [PULL v3 05/25] vl: drop needless -spice checks, marcandre . lureau, 2023/11/07
- [PULL v3 04/25] ui: add pixman-minimal.h, marcandre . lureau, 2023/11/07
- [PULL v3 03/25] ui: compile out some qemu-pixman functions when !PIXMAN, marcandre . lureau, 2023/11/07
- [PULL v3 06/25] qemu-options: define -vnc only #ifdef CONFIG_VNC, marcandre . lureau, 2023/11/07
- [PULL v3 08/25] vl: move display early init before default devices, marcandre . lureau, 2023/11/07
- [PULL v3 10/25] ui/vc: console-vc requires PIXMAN, marcandre . lureau, 2023/11/07
- [PULL v3 07/25] vl: simplify display_remote logic,
marcandre . lureau <=
- [PULL v3 02/25] build-sys: drop needless warning pragmas for old pixman, marcandre . lureau, 2023/11/07
- [PULL v3 09/25] ui/console: allow to override the default VC, marcandre . lureau, 2023/11/07
- Re: [PULL v3 09/25] ui/console: allow to override the default VC, Peter Maydell, 2023/11/16
[PULL v3 14/25] vhost-user-gpu: skip VHOST_USER_GPU_UPDATE when !PIXMAN, marcandre . lureau, 2023/11/07
[PULL v3 11/25] qmp/hmp: disable screendump if PIXMAN is missing, marcandre . lureau, 2023/11/07