From 7ef305d073f8d86aa7bf8a41ffcbbc7984b1f55a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 4 Sep 2021 16:18:43 +0200 Subject: protocol: mention that keymap mapping must be read-only It may be obvious that the mapping must be established in read-only mode, but it wasn't specified in the specification text. Signed-off-by: Simon Ser --- protocol/wayland.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index a87e9dd..8c31cdc 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2220,7 +2220,8 @@ This event provides a file descriptor to the client which can be - memory-mapped to provide a keyboard mapping description. + memory-mapped in read-only mode to provide a keyboard mapping + description. From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail. -- cgit v1.2.3-70-g09d2