diff options
author | Scott Anderson <daniels@collabora.com> | 2019-12-10 11:48:04 +0000 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2020-01-30 01:02:12 +0200 |
commit | 2d7243208d3e455decd730e7e33ab2452b1a0508 (patch) | |
tree | 68fda63d82e57ad96c231b32592b0a62becaaa96 /protocol | |
parent | aa4ba5d283d641da25722af7a966c31d61a9686b (diff) |
src/: Add basic support for app switching
- adds a new request for agl-shell, 'activate_app', which allows to
specify which application should switch to. With it, client shell
commands which application to switch to.
- ties the layout (panel and background initizatlon) bits into its own
specific file
Bug-AGL: SPEC-3117
Change-Id: I1b3d89ff77c0e0e439666227ef3319b2107406c0
Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'protocol')
-rw-r--r-- | protocol/agl-shell.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/protocol/agl-shell.xml b/protocol/agl-shell.xml index 59548e7..1096c64 100644 --- a/protocol/agl-shell.xml +++ b/protocol/agl-shell.xml @@ -96,5 +96,22 @@ <arg name="output" type="object" interface="wl_output"/> <arg name="edge" type="uint" enum="edge"/> </request> + + <request name="activate_app"> + <description summary="make client current window"> + Ask the compositor to make a toplevel to become the current/focused + window for window management purposes. + + See xdg_toplevel.set_app_id from the xdg-shell protocol for a + description of app_id. + + If multiple toplevels have the same app_id, the result is unspecified. + + XXX: Do we need feedback to say it didn't work? (e.g. client does + not exist) + </description> + <arg name="app_id" type="string"/> + <arg name="output" type="object" interface="wl_output"/> + </request> </interface> </protocol> |