diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2020-04-06 22:30:55 +0300 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-05-12 21:56:35 +0300 |
commit | d0b4585202c46be21b415c664b9d010057c37686 (patch) | |
tree | 6be0a37532ed10562c7da081abd6b4b5ef3a787d /src/ivi-compositor.h | |
parent | 410d47884ffedce08a987b948429d9d13bc4f551 (diff) |
agl-shell-desktop: Add the ability to hide client windows
This would be particularly useful to pop-up kind of window(s).
It implements the 'deactivate_app' request. For the pop-up role we
just remove the view from the layer while for the desktop we store
the previous surface and re-use it if that's set. Otherwise we just
display the background surface.
As we now allow to hide client windows, we need to able to activate/show
them back so this also adds a slight modification to take care to handle
the pop-up role separately when calling the 'activate_app' request.
Bug-AGL: SPEC-3269
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Iec5ccbe2815f4b0e32086fd49856f5f338147f79
Diffstat (limited to 'src/ivi-compositor.h')
-rw-r--r-- | src/ivi-compositor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index bdd91ff..b76da85 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -130,6 +130,7 @@ struct ivi_output { struct weston_geometry area; struct ivi_surface *active; + struct ivi_surface *previous_active; /* Temporary: only used during configuration */ size_t add_len; @@ -290,4 +291,7 @@ ivi_layout_panel_committed(struct ivi_surface *surface); void ivi_layout_popup_committed(struct ivi_surface *surface); +void +ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id); + #endif |