[RFC weston] compositor: Use ordered layers
Quentin Glidic
sardemff7+wayland at sardemff7.net
Thu May 23 01:07:20 PDT 2013
On 22/05/2013 22:05, Kristian Høgsberg wrote:
> On Tue, May 21, 2013 at 06:26:53PM +0200, Quentin Glidic wrote:
>> From: Quentin Glidic <sardemff7+git at sardemff7.net>
>>
>> It allows a more generic layer management that several modules can use
>> at the same time without breaking each others’ layers.
>>
>> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
>> ---
>>
>> This change is incomplete but the desktop shell works fine with it.
>>
>> The idea is to allow other modules to use layers without breaking the shell.
>> Using relative layers like the old patch did is not flexible enough, since
>> modules could want to put layers *between* the shell’s ones.
>>
>> Comments?
>
> I think it's better to change shell.c to not pull out and add back all
> layers when the screensaver triggers. I thought it was a cool idea at
> the time since if the other surfaces aren't even in the scenegraph,
> there's no way they can steal focus from the screen lock dialog.
>
> At this point, I think it's cleaner to just add a lock-screen layer
> that we can put the unlock dialog into and perhaps a lock screen
> background surface.
>
> Kristian
This fixes the runtime ordering of layers, but it does not address the
need of plugin willing to put layers between the shell’s one.
Also, it defeats the purpose of the lock screen, because a plugin can
either put a layer *under* the background or *on top* of the lock screen.
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list