OSDN Git Service

vl: add missing display_remote++
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 17 Nov 2023 11:15:13 +0000 (15:15 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Nov 2023 10:38:14 +0000 (14:38 +0400)
commitff2a5bed5f28cc59b25de76cb90196329da6c1f4
tree7af10bff9c11f4067df08413cc6c3eae64f62a82
parent0e8823072e1d6c5320864f734d01f11210109320
vl: add missing display_remote++

We should also consider -display vnc= as setting up a remote display,
and not attempt to add another default one.

The display_remote++ in qemu_setup_display() isn't necessary at this
point, but is there for completeness and further usages of the variable.

Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1988
Fixes: commit 484629fc81 ("vl: simplify display_remote logic ")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
system/vl.c