ui/dbus: do not send 2d scanout until gfx_update
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sun, 20 Feb 2022 19:57:00 +0000 (23:57 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Mar 2022 08:54:59 +0000 (12:54 +0400)
commit2fa2386e38387f592a0abf871eabb16e7a43dcd1
tree29dfd5be6b29248d4c6515eb9919beef72f2b2fc
parent589089feee5bf5110f21fd582f9c2c479ae718a2
ui/dbus: do not send 2d scanout until gfx_update

gfx_switch() is called to set the new_surface, not necessarily to
display it. It should be displayed after gfx_update(). Send the whole
scanout only in this case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
ui/dbus-listener.c