ui/dbus: filter out pending messages when scanout
commitfa88b85dea96ebad8d4380a3dee2a9e6e40c218c
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 7 Mar 2024 14:21:13 +0000 (7 18:21 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 12 Mar 2024 13:57:58 +0000 (12 17:57 +0400)
treea1b78026d872c66ec937eacb359d3a7928b788ec
parent7945576cf298efb90a03b3e74912e3fe5952db56
ui/dbus: filter out pending messages when scanout

The "Listener" connection, being private and under the control of the
qemu display, allows for the optimization of discarding pending
intermediary messages when queuing a new scanout. This ensures that the
client receives only the latest scanout update, improving communication
efficiency.

While the current implementation does not provide a mechanism for
clients who may wish to receive all updates, making this behavior
optional could be considered in the future. For now, adopting this new
default behavior accelerates the communication process without a
guarantee of delivering all updates.

The filter is removed when the connection is dropped.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ui/dbus-listener.c
ui/trace-events