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.

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to