]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/dbus: fix filtering all update messages
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 8 Oct 2024 12:50:14 +0000 (16:50 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 16 Oct 2024 08:16:00 +0000 (11:16 +0300)
commit01fff50626c2bffd7be1ce92e531852ea69372f3
tree860d2dce1a5b2f32e3b3de798727473b25ffb48f
parente1324ec9465efbd7ca95c4ad29d3d3cf102d05c3
ui/dbus: fix filtering all update messages

Filtering pending messages when a new scanout is given shouldn't discard
pending cursor changes, for example.

Since filtering happens in a different thread, use atomic set/get.

Fixes: fa88b85dea ("ui/dbus: filter out pending messages when scanout")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20241008125028.1177932-6-marcandre.lureau@redhat.com>
(cherry picked from commit cf59889781297a5618f1735a5f31402caa806b42)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
ui/dbus-listener.c