summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-24 13:37:27 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-30 02:19:51 +0200
commit862bb2cd07e42ead1e0852aba3431eb273155847 (patch)
treeae7ab106a9d9bd9499d153446eaa2e1201f61093 /client
parent0ca7704a5ab4417a94c9911ace52eba787535ffe (diff)
downloadspice-862bb2cd07e42ead1e0852aba3431eb273155847.tar.gz
spice-862bb2cd07e42ead1e0852aba3431eb273155847.tar.xz
spice-862bb2cd07e42ead1e0852aba3431eb273155847.zip
spicec: refresh the display after display resize
Diffstat (limited to 'client')
-rw-r--r--client/display_channel.cpp4
1 files changed, 4 insertions, 0 deletions
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<int>& 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)