From 2197dcceaa4b223602f4a7b3de664ae844786460 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 3 Aug 2022 18:37:09 +0300 Subject: agl-shell: Add an explicit set_app_split While libweston does have tiled orientation support, we can't really control from the client itself, just the shell can do that. This patchs adds a new request which can tell how to position different clients. Signed-off-by: Marius Vlad --- protocol/agl-shell.xml | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/protocol/agl-shell.xml b/protocol/agl-shell.xml index 6d0d693..544556b 100644 --- a/protocol/agl-shell.xml +++ b/protocol/agl-shell.xml @@ -22,7 +22,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - + Starting with version 2 of the protocol, the client is required to wait for the 'bound_ok' or 'bound_fail' events in order to proceed further. @@ -71,9 +71,18 @@ + + + + + + + + + @@ -267,5 +276,41 @@ + + + Request changes the application from the original mode (whatever that + might be) to a split, tiled orientation mode defined in the orientation + split_orientation enum. This request only handles a single level of + orientation for practical reasons. + + If there's no app_id with the supplied name this request does nothing. + + A none orientation type would make the window go back to the original + maximized mode. This implies that either the background surface will + displayed or in case there are more than one applications being + shown, the other application will be returned to the original, + maximized state. + + The tiled orientation could be applied independently of each other, + such that a client can transition from one tiled orientation to + another. Any other window already present would switch places with + the currently one being changed. + + In case there's already a client that's already active at that time, + it will be attributed automatically the opposite tiled orientation, + such that two concurrent applications can be displayed at the same + time. + + The orientation tiles can not be combined, and only state at a time + can be active, which means we can't have a top left orientation, or + any combination like that. + + See xdg_toplevel.set_app_id from the xdg-shell protocol for a + description of app_id. + + + + + -- cgit 1.2.3-korg