Commits on Source (21)
-
Daniel Stone authored
These signals are emitted when the surface becomes mapped or unmapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
2f2e20f3 -
Daniel Stone authored
There is no way for shell_surface_calculate_layer_link() to give us a NULL layer, so don't pretend it can and silently drop out without removing it from the old layer. Signed-off-by: Daniel Stone <daniels@collabora.com>
5ff5d0ea -
Daniel Stone authored
weston_view_geometry_dirty() won't automatically clear out the old region, so manually damage underneath the view before we mark the geometry dirty. Signed-off-by: Daniel Stone <daniels@collabora.com>
0bee7ff4 -
Daniel Stone authored
If a view isn't mapped, then we don't need to damage beneath it, as nothing's beneath it. Signed-off-by: Daniel Stone <daniels@collabora.com>
54b78dd6 -
Daniel Stone authored
Try to stick to a pattern of first mapping a surface, then inserting a view into a layer together with marking it as mapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
166d9661 -
Daniel Stone authored
shell_surface_update_layer() is the thing which moves our views around into layers. Since we want to keep an invariant that a view is mapped if it is on a layer, and unmapped if it is not on a layer, handle mapping along with the layer moves. Signed-off-by: Daniel Stone <daniels@collabora.com>
4b3e09fa -
Daniel Stone authored
Preserve the same order as desktop-shell for handling view (un)mapping, so we can move these into a shared helper. These should have no functional effect but provide a helpful bisect point. Signed-off-by: Daniel Stone <daniels@collabora.com>
07103d18 -
Daniel Stone authored
It fires when a view is mapped. Signed-off-by: Daniel Stone <daniels@collabora.com>
7e1d4462 -
Daniel Stone authored
When we're tabbing away from fullscreen views, use the new helper rather than open-coding layer switching. Signed-off-by: Daniel Stone <daniels@collabora.com>
62dbbd67 -
Daniel Stone authored
Use our shiny new helper for fullscreen fades. Signed-off-by: Daniel Stone <daniels@collabora.com>
179d4513 -
Daniel Stone authored
This is kind of immaterial since the view is going to be destroyed, but it's a step. Signed-off-by: Daniel Stone <daniels@collabora.com>
fd620717 -
Daniel Stone authored
Instead of pre-creating a fade-out view that's sort of left half-mapped around in the scene graph, create the view only when we need it, and use the helpers to make sure that the damage is correctly handled. Signed-off-by: Daniel Stone <daniels@collabora.com>
c1bbcba6 -
Daniel Stone authored
Use the new helper for placing the fullscreen background view. Signed-off-by: Daniel Stone <daniels@collabora.com>
1c2edaac -
Daniel Stone authored
Use our new helper instead of open-coding part of it. Signed-off-by: Daniel Stone <daniels@collabora.com>
5c9231b1 -
Daniel Stone authored
Use the new helper instead of open-coding part of it. This removes a comment about not marking a surface as mapped until it has a buffer: the surface->width == 0 check already guarantees that we have a buffer. Signed-off-by: Daniel Stone <daniels@collabora.com>
1da1d860 -
Daniel Stone authored
When we're rotating a surface, only mark the geometry as dirty after we've actually updated the transformations. Then we can restrict our repaint to just the view itself, not the full compositor. Signed-off-by: Daniel Stone <daniels@collabora.com>
785af260 -
Daniel Stone authored
When we're switching between different active surfaces, use the new weston_view_move_to_layer() helper. Signed-off-by: Daniel Stone <daniels@collabora.com>
8255c49a -
Daniel Stone authored
Use the new layer-move helper for our background. Signed-off-by: Daniel Stone <daniels@collabora.com>
a822d207 -
Daniel Stone authored
When a new view gets activated, use weston_view_move_to_layer() for our dance of moving views to the front. Signed-off-by: Daniel Stone <daniels@collabora.com>
e743d563 -
Daniel Stone authored
Use the new helper, instead of open-coding a small part of it. Signed-off-by: Daniel Stone <daniels@collabora.com>
38e1523b -
Daniel Stone authored
Simple patch, negative LoC, cleanliness win, correctness win. Signed-off-by: Daniel Stone <daniels@collabora.com>
0a4d74c6