aboutsummaryrefslogtreecommitdiff
path: root/ui/spice-display.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-09-27 18:57:48 +0400
committerGerd Hoffmann <kraxel@redhat.com>2020-09-29 10:08:25 +0200
commit5eaf1e48ff397185ec2f702f9968787d4d29e3c4 (patch)
treef97362445092488aae53b33ff0ab1c78424c708d /ui/spice-display.c
parentfd36eade0187a4efe0507b41fae22277300d1c7a (diff)
downloadqemu-5eaf1e48ff397185ec2f702f9968787d4d29e3c4.zip
qemu-5eaf1e48ff397185ec2f702f9968787d4d29e3c4.tar.gz
qemu-5eaf1e48ff397185ec2f702f9968787d4d29e3c4.tar.bz2
ui: add getter for UIInfo
The following patch is going to introduce extra fields / details to UIInfo. Add a getter and keep the current values, instead of memset(0) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20200927145751.365446-4-marcandre.lureau@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-display.c')
-rw-r--r--ui/spice-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c
index 19632fd..625d923 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -672,7 +672,7 @@ static int interface_client_monitors_config(QXLInstance *sin,
return 1;
}
- memset(&info, 0, sizeof(info));
+ info = *dpy_get_ui_info(ssd->dcl.con);
if (mc->num_of_monitors == 1) {
/*