aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2024-10-08 16:50:15 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2024-10-14 17:34:09 +0400
commit6b9524dfa550e4ce66451e3bdfbe61f2a683fddc (patch)
treec9ef870e7999cf082a3d9439cad6b11861467b75 /ui
parentcf59889781297a5618f1735a5f31402caa806b42 (diff)
downloadqemu-6b9524dfa550e4ce66451e3bdfbe61f2a683fddc.zip
qemu-6b9524dfa550e4ce66451e3bdfbe61f2a683fddc.tar.gz
qemu-6b9524dfa550e4ce66451e3bdfbe61f2a683fddc.tar.bz2
ui/dbus: discard display messages on disable
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-ID: <20241008125028.1177932-7-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/dbus-listener.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index c69afc0..19cb74e 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -107,6 +107,8 @@ static void dbus_scanout_disable(DisplayChangeListener *dcl)
{
DBusDisplayListener *ddl = container_of(dcl, DBusDisplayListener, dcl);
+ ddl_discard_display_messages(ddl);
+
qemu_dbus_display1_listener_call_disable(
ddl->proxy, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL);
}