[PATCH weston 7/8] westoy: Schedule a full resize when we add a subsurface

Bill Spitzak spitzak at gmail.com
Thu Nov 14 12:33:20 PST 2013


Jasper St. Pierre wrote:

> It is not a bug in the compositor. It's a bug in toytoolkit.

In that case this is fine. May want to put a comment in there as to why 
it is redrawing the parent window.

>     Jasper St. Pierre wrote:
> 
>         If a client adds a subsurface, we need to make sure it's allocated
>         properly, so queue a resize and redraw on the parent window.
>         ---
>          clients/window.c | 3 +++
>          1 file changed, 3 insertions(+)
> 
>         diff --git a/clients/window.c b/clients/window.c
>         index 5a1c8ec..df56bd9 100644
>         --- a/clients/window.c
>         +++ b/clients/window.c
>         @@ -4462,6 +4462,9 @@ window_add_subsurface(struct window
>         *window, void *data,
>                         assert(!"bad enum subsurface_mode");
>                 }
>          +      window->resize_needed = 1;
>         +       window_schedule_redraw(window)__;
>         +
>                 return widget;
>          }


More information about the wayland-devel mailing list