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

Alon Levy alevy at redhat.com
Tue Sep 24 06:19:51 PDT 2013


On 09/24/2013 02:42 PM, Marc-André Lureau wrote:


This appears to be unrelated to the gl checks, same as the nograb fix 
(excellent). Can you move both to the start of the patchset?
> ---
>   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;



More information about the Spice-devel mailing list