mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-24 14:50:09 +01:00
ext-session-lock-v1: use RFC 2119 key words
Signed-off-by: Isaac Freund <mail@isaacfreund.com>
This commit is contained in:
parent
930bc8014b
commit
5dc6efded0
1 changed files with 19 additions and 15 deletions
|
|
@ -29,6 +29,10 @@
|
||||||
the session is locked the session remains locked, possibly permanently
|
the session is locked the session remains locked, possibly permanently
|
||||||
depending on compositor policy.
|
depending on compositor policy.
|
||||||
|
|
||||||
|
The key words "must", "must not", "required", "shall", "shall not",
|
||||||
|
"should", "should not", "recommended", "may", and "optional" in this
|
||||||
|
document are to be interpreted as described in IETF RFC 2119.
|
||||||
|
|
||||||
Warning! The protocol described in this file is currently in the
|
Warning! The protocol described in this file is currently in the
|
||||||
testing phase. Backward compatible changes may be added together with
|
testing phase. Backward compatible changes may be added together with
|
||||||
the corresponding interface version bump. Backward incompatible changes
|
the corresponding interface version bump. Backward incompatible changes
|
||||||
|
|
@ -64,9 +68,9 @@
|
||||||
On creation of this object either the locked or finished event will
|
On creation of this object either the locked or finished event will
|
||||||
immediately be sent.
|
immediately be sent.
|
||||||
|
|
||||||
The locked event indicates that the session is locked. This means that
|
The locked event indicates that the session is locked. This means
|
||||||
the compositor should stop rendering and providing input to normal
|
that the compositor must stop rendering and providing input to normal
|
||||||
clients. Instead the compositor should blank all outputs with an opaque
|
clients. Instead the compositor must blank all outputs with an opaque
|
||||||
color such that their normal content is fully hidden.
|
color such that their normal content is fully hidden.
|
||||||
|
|
||||||
The only surfaces that should be rendered while the session is locked
|
The only surfaces that should be rendered while the session is locked
|
||||||
|
|
@ -74,7 +78,7 @@
|
||||||
at the compositor's discretion, special privileged surfaces such as
|
at the compositor's discretion, special privileged surfaces such as
|
||||||
input methods or portions of desktop shell UIs.
|
input methods or portions of desktop shell UIs.
|
||||||
|
|
||||||
If the client dies while the session is locked, the compositor should not
|
If the client dies while the session is locked, the compositor must not
|
||||||
unlock the session in response. It is acceptable for the session to be
|
unlock the session in response. It is acceptable for the session to be
|
||||||
permanently locked if this happens. The compositor may choose to continue
|
permanently locked if this happens. The compositor may choose to continue
|
||||||
to display the lock surfaces the client had mapped before it died or
|
to display the lock surfaces the client had mapped before it died or
|
||||||
|
|
@ -123,16 +127,16 @@
|
||||||
creation of this object.
|
creation of this object.
|
||||||
|
|
||||||
If this event is sent, making the destroy request is a protocol error,
|
If this event is sent, making the destroy request is a protocol error,
|
||||||
the lock object may only be destroyed using the unlock_and_destroy
|
the lock object must be destroyed using the unlock_and_destroy request.
|
||||||
request.
|
|
||||||
</description>
|
</description>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
<event name="finished">
|
<event name="finished">
|
||||||
<description summary="the session lock object should be destroyed">
|
<description summary="the session lock object should be destroyed">
|
||||||
The compositor has decided that the session lock should be
|
The compositor has decided that the session lock should be destroyed
|
||||||
destroyed. Exactly when this event is sent is compositor policy, but
|
as it will no longer be used by the compositor. Exactly when this
|
||||||
it will never be sent more than once for a given session lock object.
|
event is sent is compositor policy, but it must never be sent more
|
||||||
|
than once for a given session lock object.
|
||||||
|
|
||||||
This might be sent because there is already another ext_session_lock_v1
|
This might be sent because there is already another ext_session_lock_v1
|
||||||
object held by a client, or the compositor has decided to deny the
|
object held by a client, or the compositor has decided to deny the
|
||||||
|
|
@ -177,17 +181,17 @@
|
||||||
verified by the client.
|
verified by the client.
|
||||||
|
|
||||||
This request also informs the compositor that the lock object will
|
This request also informs the compositor that the lock object will
|
||||||
no longer be used and may be safely destroyed. Existing objects
|
no longer be used and should be destroyed. Existing objects created
|
||||||
created through this interface remain valid.
|
through this interface remain valid.
|
||||||
|
|
||||||
After this request is made, lock surfaces created through this object
|
After this request is made, lock surfaces created through this object
|
||||||
should be destroyed by the client as they will no longer be used by
|
should be destroyed by the client as they will no longer be used by
|
||||||
the compositor.
|
the compositor.
|
||||||
|
|
||||||
It is a protocol error to make this request if the locked event has
|
It is a protocol error to make this request if the locked event has
|
||||||
not been sent. In that case, the lock object may only be destroyed
|
not been sent. In that case, the lock object must be destroyed using
|
||||||
using the destroy request.
|
the destroy request.
|
||||||
|
|
||||||
Note that a correct client that wishes to exit directly after unlocking
|
Note that a correct client that wishes to exit directly after unlocking
|
||||||
the session must use the wl_display.sync request to ensure the server
|
the session must use the wl_display.sync request to ensure the server
|
||||||
receives and processes the unlock_and_destroy request. Otherwise
|
receives and processes the unlock_and_destroy request. Otherwise
|
||||||
|
|
@ -207,7 +211,7 @@
|
||||||
|
|
||||||
On binding this interface the compositor will immediately send the
|
On binding this interface the compositor will immediately send the
|
||||||
first configure event. After making the ack_configure request in
|
first configure event. After making the ack_configure request in
|
||||||
response to this event the client may attach and commit the first
|
response to this event the client should attach and commit the first
|
||||||
buffer. Committing the surface before acking the first configure is a
|
buffer. Committing the surface before acking the first configure is a
|
||||||
protocol error. Committing the surface with a null buffer at any time
|
protocol error. Committing the surface with a null buffer at any time
|
||||||
is a protocol error.
|
is a protocol error.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue