[PATCH 04/11] ui/dbus: update the display when switching surface

marcandre.lureau@redhat.com posted 11 patches 2 years, 3 months ago
There is a newer version of this series
[PATCH 04/11] ui/dbus: update the display when switching surface
Posted by marcandre.lureau@redhat.com 2 years, 3 months ago
From: Marc-André Lureau <marcandre.lureau@redhat.com>

This seems to be the expected behaviour.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 ui/dbus-listener.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/dbus-listener.c b/ui/dbus-listener.c
index f9fc8eda51..620d9450cc 100644
--- a/ui/dbus-listener.c
+++ b/ui/dbus-listener.c
@@ -321,6 +321,8 @@ static void dbus_gfx_switch(DisplayChangeListener *dcl,
         /* why not call disable instead? */
         return;
     }
+
+    dbus_gfx_update(dcl, 0, 0, surface_width(ddl->ds), surface_height(ddl->ds));
 }
 
 static void dbus_mouse_set(DisplayChangeListener *dcl,
-- 
2.39.1