Commits on Source (19)
-
If a surface has already been mapped, just return early out of weston_surface_map(), rather than firing the map signal and rebuilding the view list. Signed-off-by: Daniel Stone <daniels@collabora.com>
5c75eccc -
The counterpart to weston_surface_is_unmapping(). This is valid for the duration of processing the surface commit. Signed-off-by: Daniel Stone <daniels@collabora.com>
2faf491f -
A subsurface is not considered to be fully 'mapped' unless its ancestors are also mapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
cae78977 -
A view is mapped if it's on a layer, so if we find it in a layer then we don't need to worry about whether or not it's mapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
6b1a4e65 -
If our background and/or panel surface already has a view, something extraordinarily weird has gone on. Don't try to deal with it. Signed-off-by: Daniel Stone <daniels@collabora.com>
22175a6a -
We only want one background and/or panel per output. If another one comes up, tell the client it's done something very bad, rather than trying to gently negotiate our way out of the situation. Signed-off-by: Daniel Stone <daniels@collabora.com>
a54bc37c -
We expect this to happen at shutdown, so don't act surprised when it does. Signed-off-by: Daniel Stone <daniels@collabora.com>
2cb4feb6 -
Make background and panel surfaces do the right thing: map the surface when it first gets content applied to it, and only move the view around when required. Signed-off-by: Daniel Stone <daniels@collabora.com>
7f543413 -
We only have one of those per output, and we need to dig them out later, so just store a direct pointer to them. Signed-off-by: Daniel Stone <daniels@collabora.com>
36d04b03 -
We need to know which output we're on, and the surface type plus output uniquely identifies us, so just pass that in. Signed-off-by: Daniel Stone <daniels@collabora.com>
e165f152 -
We don't need to traverse the layer-view list to find our view for an output's panel. Signed-off-by: Daniel Stone <daniels@collabora.com>
a80a0084 -
Calculate everything in global co-ordinates and make it more consistent. Signed-off-by: Daniel Stone <daniels@collabora.com>
aae1abb8 -
Don't look it up from the view every time, but instead just work completely from global co-ordinates. Signed-off-by: Daniel Stone <daniels@collabora.com>
82d25f3c -
This is a pretty trivial case which just sets up one static view. Signed-off-by: Daniel Stone <daniels@collabora.com>
de243918 -
This is pretty trivial, so why not. Signed-off-by: Daniel Stone <daniels@collabora.com>
3e156720 -
Rather than checking if the surface has width 0, use our helper to see if the surface has an attached buffer. Signed-off-by: Daniel Stone <daniels@collabora.com>
7205e88e -
Wait until the lock surface is mapped until we create the view. Signed-off-by: Daniel Stone <daniels@collabora.com>
40fdffdc -
Use our helper instead of open-coding view manipulation. Signed-off-by: Daniel Stone <daniels@collabora.com>
ecc0d403 -
Separate the concept of a surface being mapped (where it has current content) from views being mapped (visible on a layer). Signed-off-by: Daniel Stone <daniels@collabora.com>
bdf2019e