spicec: refresh the display after display resize

This commit is contained in:
Marc-André Lureau 2013-09-24 13:37:27 +02:00
parent 0ca7704a5a
commit 862bb2cd07

View File

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