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>
This commit is contained in:
parent
cf59889781
commit
6b9524dfa5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user