[Spice-devel] [PATCH 11/11] spicec: refresh the display after display resize

Marc-André Lureau marcandre.lureau at gmail.com
Tue Sep 24 04:42:22 PDT 2013


---
 client/display_channel.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/display_channel.cpp b/client/display_channel.cpp
index c9ce3d8..47076ad 100644
--- a/client/display_channel.cpp
+++ b/client/display_channel.cpp
@@ -1278,6 +1278,10 @@ void DisplayChannel::create_canvas(int surface_id, const std::vector<int>& canva
         THROW("create canvas failed");
     }
 
+    // make sure to refresh the whole display
+    SpiceRect rect = { 0, 0, width, height };
+    invalidate(rect, true);
+
     try {
         if (!_check_diff)
             return;
-- 
1.8.3.1



More information about the Spice-devel mailing list