[PATCH 2/2] shell: account for the subsurfaces when going fullscreen or maximizing

Bill Spitzak spitzak at gmail.com
Tue Feb 26 09:22:44 PST 2013

On 02/25/2013 09:59 AM, Giulio Camuffo wrote:
> We must calculate the bounding box of the surface + subsurfaces set and use
> that when maximizing the window or going fullscreen.

I think it would be much better for the client to just be able to say 
"pretend this shell surface is this big, even though the buffer attached 
to it is a different rectangle". In this case whatever the parent 
surface is would claim it occupied an area that included the edge 
decoration subsurfaces.

This will also allow subsurfaces to extend outside what the user thinks 
of as the window area. Also it seems vastly simpler, I'm pretty certain 
the client will know this information easily.

If there is api added so the client knows what portion of the surface is 
actually visible and not clipped by output edges or panels, it can use 
this to avoid allocating buffer for and drawing invisible portions, 
which I think will be a big win by making maximize a lot simpler.

More information about the wayland-devel mailing list