From 862bb2cd07e42ead1e0852aba3431eb273155847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 24 Sep 2013 13:37:27 +0200 Subject: [PATCH] spicec: refresh the display after display resize --- client/display_channel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/display_channel.cpp b/client/display_channel.cpp index 49a4c6af..9ba93c48 100644 --- a/client/display_channel.cpp +++ b/client/display_channel.cpp @@ -1276,6 +1276,10 @@ void DisplayChannel::create_canvas(int surface_id, const std::vector& canva if (i == canvas_types.size()) { THROW("create canvas failed"); } + + // make sure to refresh the whole display + SpiceRect rect = { 0, 0, width, height }; + invalidate(rect, true); } void DisplayChannel::handle_mode(RedPeer::InMessage* message)