diff options
author | Akihiko Odaki | 2021-02-25 11:13:16 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-03-04 09:35:36 +0100 |
commit | ed8f3fe6898e0f3fea2ece7c87464a06098b2300 (patch) | |
tree | 64f5dfb3c50a83455400a33b52264ca8f4eb31d0 /hw/display/vhost-user-gpu.c | |
parent | ui/console: Pass placeholder surface to displays (diff) | |
download | qemu-ed8f3fe6898e0f3fea2ece7c87464a06098b2300.tar.gz qemu-ed8f3fe6898e0f3fea2ece7c87464a06098b2300.tar.xz qemu-ed8f3fe6898e0f3fea2ece7c87464a06098b2300.zip |
virtio-gpu: Do not distinguish the primary console
In the past, virtio-gpu set NULL as the surface for the secondary
consoles to hide its window. The distinction is now handled in
ui/console and the display backends and virtio-gpu does no longer
have to do that.
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210225101316.83940-3-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/vhost-user-gpu.c')
-rw-r--r-- | hw/display/vhost-user-gpu.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index 3e911da795..a01f9315e1 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -193,10 +193,8 @@ vhost_user_gpu_handle_display(VhostUserGPU *g, VhostUserGpuMsg *msg) s = &g->parent_obj.scanout[m->scanout_id]; con = s->con; - if (m->scanout_id == 0 && m->width == 0) { - s->ds = qemu_create_placeholder_surface(640, 480, - "Guest disabled display."); - dpy_gfx_replace_surface(con, s->ds); + if (m->width == 0) { + dpy_gfx_replace_surface(con, NULL); } else { s->ds = qemu_create_displaysurface(m->width, m->height); /* replace surface on next update */ |