From 5476e431bdf5f68117c5754dfe3302183c269bf5 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Tue, 29 Dec 2020 18:49:31 +0000 Subject: [PATCH] protocols: Replace seat-management with transient-seat --- protocols/meson.build | 2 +- protocols/transient-seat-unstable-v1.xml | 89 +++++++++++++++++++ protocols/wlr-seat-management-unstable-v1.xml | 52 ----------- 3 files changed, 90 insertions(+), 53 deletions(-) create mode 100644 protocols/transient-seat-unstable-v1.xml delete mode 100644 protocols/wlr-seat-management-unstable-v1.xml diff --git a/protocols/meson.build b/protocols/meson.build index 291be58..50210c0 100644 --- a/protocols/meson.build +++ b/protocols/meson.build @@ -21,7 +21,7 @@ client_protocols = [ 'xdg-output-unstable-v1.xml', 'linux-dmabuf-unstable-v1.xml', 'wlr-data-control-unstable-v1.xml', - 'wlr-seat-management-unstable-v1.xml', + 'transient-seat-unstable-v1.xml', ] client_protos_src = [] diff --git a/protocols/transient-seat-unstable-v1.xml b/protocols/transient-seat-unstable-v1.xml new file mode 100644 index 0000000..c8ecd28 --- /dev/null +++ b/protocols/transient-seat-unstable-v1.xml @@ -0,0 +1,89 @@ + + + + Copyright © 2020 Andri Yngvason + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice (including the next + paragraph) shall be included in all copies or substantial portions of the + Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + + + The transient seat protocol can be used by clients to create independent + seats that will be removed when the client disconnects. The client also gets + a handle to the seat which can be used to remove the seat. + + + + + + Create a new seat that is removed when the client closes the connection. + + The client may suggest a name for the seat, but the server may choose + whichever name it sees fit, except the name must not collide with the + name of another seat. + + It is suggested that the client choose a sufficiently unique name, e.g. + something containing the pid and an incremental numeric value. + + + + + + + + Destroy the manager + + + + + + + + + + + + + + This event indicates that the seat creation failed. No event is + generated after this and the client should destroy the transient seat + object. + + + + + + + This event indicates that the seat has been created and tells the client + which name was chosen for it. It is generated after the seat is created. + No event is generated after this. + + + + + + + Destroy the seat + + + + diff --git a/protocols/wlr-seat-management-unstable-v1.xml b/protocols/wlr-seat-management-unstable-v1.xml deleted file mode 100644 index a35b819..0000000 --- a/protocols/wlr-seat-management-unstable-v1.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - Copyright © 2020 Andri Yngvason - - Permission is hereby granted, free of charge, to any person obtaining a - copy of this software and associated documentation files (the "Software"), - to deal in the Software without restriction, including without limitation - the rights to use, copy, modify, merge, publish, distribute, sublicense, - and/or sell copies of the Software, and to permit persons to whom the - Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice (including the next - paragraph) shall be included in all copies or substantial portions of the - Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - - - - - - - - Create a new seat that is removed when the client closes the connection. - - - - - - - - Destroy the manager - - - - - - - - Destroy the chair - - - -