[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] ui: use "vc" chardev for dbus, gtk & spice-app
|
From: |
marcandre . lureau |
|
Subject: |
[PULL 2/5] ui: use "vc" chardev for dbus, gtk & spice-app |
|
Date: |
Tue, 21 Nov 2023 14:40:17 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Those display have their own implementation of "vc" chardev, which
doesn't use pixman. They also don't implement the width/height/cols/rows
options, so qemu_display_get_vc() should return a compatible argument.
This patch was meant to be with the pixman series, when the "vc" field
was introduced. It fixes a regression where VC are created on the
tty (or null) instead of the display own "vc" implementation.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
---
ui/dbus.c | 1 +
ui/gtk.c | 1 +
ui/spice-app.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/ui/dbus.c b/ui/dbus.c
index 866467ad2e..e08b5de064 100644
--- a/ui/dbus.c
+++ b/ui/dbus.c
@@ -518,6 +518,7 @@ static QemuDisplay qemu_display_dbus = {
.type = DISPLAY_TYPE_DBUS,
.early_init = early_dbus_init,
.init = dbus_init,
+ .vc = "vc",
};
static void register_dbus(void)
diff --git a/ui/gtk.c b/ui/gtk.c
index be047a41ad..810d7fc796 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -2534,6 +2534,7 @@ static QemuDisplay qemu_display_gtk = {
.type = DISPLAY_TYPE_GTK,
.early_init = early_gtk_display_init,
.init = gtk_display_init,
+ .vc = "vc",
};
static void register_gtk(void)
diff --git a/ui/spice-app.c b/ui/spice-app.c
index 405fb7f9f5..a10b4a58fe 100644
--- a/ui/spice-app.c
+++ b/ui/spice-app.c
@@ -220,6 +220,7 @@ static QemuDisplay qemu_display_spice_app = {
.type = DISPLAY_TYPE_SPICE_APP,
.early_init = spice_app_display_early_init,
.init = spice_app_display_init,
+ .vc = "vc",
};
static void register_spice_app(void)
--
2.42.0
- [PULL 4/5] ui/cocoa: add zoom-to-fit display option, (continued)
- [PULL 4/5] ui/cocoa: add zoom-to-fit display option, marcandre . lureau, 2023/11/07
- [PULL 3/5] ui/gtk-egl: apply scale factor when calculating window's dimension, marcandre . lureau, 2023/11/07
- [PULL 2/5] ui/gtk-egl: Check EGLSurface before doing scanout, marcandre . lureau, 2023/11/07
- [PULL 5/5] ui: Replacing pointer in function, marcandre . lureau, 2023/11/07
- Re: [PULL 0/5] Ui patches, Stefan Hajnoczi, 2023/11/07
- Re: [PULL 0/5] Ui patches, Michael Tokarev, 2023/11/07
- [PULL 0/5] Ui patches, marcandre . lureau, 2023/11/21
- [PULL 1/5] vl: revert behaviour for -display none, marcandre . lureau, 2023/11/21
- [PULL 2/5] ui: use "vc" chardev for dbus, gtk & spice-app,
marcandre . lureau <=
- [PULL 3/5] ui/console: fix default VC when there are no display, marcandre . lureau, 2023/11/21
- [PULL 4/5] vl: add missing display_remote++, marcandre . lureau, 2023/11/21
- [PULL 5/5] ui/pixman-minimal.h: fix empty allocation, marcandre . lureau, 2023/11/21
- Re: [PULL 0/5] Ui patches, Stefan Hajnoczi, 2023/11/21