diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-09-24 13:37:27 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-09-30 02:19:51 +0200 |
commit | 862bb2cd07e42ead1e0852aba3431eb273155847 (patch) | |
tree | ae7ab106a9d9bd9499d153446eaa2e1201f61093 /client/display_channel.cpp | |
parent | 0ca7704a5ab4417a94c9911ace52eba787535ffe (diff) |
spicec: refresh the display after display resize
Diffstat (limited to 'client/display_channel.cpp')
-rw-r--r-- | client/display_channel.cpp | 4 |
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) |