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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]