From a05fb244e1be7439dadb928833239efca00e6310 Mon Sep 17 00:00:00 2001 From: Pierre Le Marre Date: Thu, 11 Dec 2025 09:01:33 +0100 Subject: [PATCH] Fixes after @whot review Signed-off-by: Pierre Le Marre --- protocol/wayland.xml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index b333bde4..fe8999e9 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2518,9 +2518,11 @@ the recipient, as MAP_SHARED may fail. From version 11 onwards, multiple wl_keyboard.keymap events may be sent - within the same frame, each one with a different keymap format. Clients - should select at most one of these events. Clients are advised to select - the format with most supported features. + within a single frame, each representing the same keymap in a distinct + keymap format. Clients must select and process at most one of these + keymaps, ideally the one offering the greatest feature coverage, while + immediately closing the file descriptors corresponding to unused + keymaps. Keymap events sent in a later frame replace the active keymap. @@ -2542,6 +2544,9 @@ Clients should not use the list of pressed keys to emulate key-press events. The order of keys in the list is unspecified. + + From version 11 onwards this event is part of a wl_keyboard.frame + logical event group. See wl_keyboard.frame for details. @@ -2560,6 +2565,9 @@ defaults. The compositor must not send this event if the active surface of the wl_keyboard was not equal to the surface argument immediately before this event. + + From version 11 onwards this event is part of a wl_keyboard.frame + logical event group. See wl_keyboard.frame for details. @@ -2607,6 +2615,9 @@ key state when a wl_keyboard.repeat_info event with a rate argument of 0 has been received. This allows the compositor to take over the responsibility of key repetition. + + From version 11 onwards this event is part of a wl_keyboard.frame + logical event group. See wl_keyboard.frame for details. @@ -2629,6 +2640,9 @@ In the wl_keyboard logical state, this event updates the modifiers and group. + + From version 11 onwards this event is part of a wl_keyboard.frame + logical event group. See wl_keyboard.frame for details. @@ -2659,6 +2673,9 @@ This event can be sent later on as well with a new value if necessary, so clients should continue listening for the event past the creation of wl_keyboard. + + From version 11 onwards this event is part of a wl_keyboard.frame + logical event group. See wl_keyboard.frame for details. @@ -2677,8 +2694,8 @@ All wl_keyboard events before a wl_keyboard.frame event belong logically together. For example, multiple wl_keyboard.keymap event may be sent — each one with a different format — and finally a - wl_keyboard.frame event. The client may use this information to select - the keymap format that fits best. + wl_keyboard.frame event. See the wl_keyboard.keymap event for more + details. A wl_keyboard.frame event is sent for every logical event group, even if the group only contains a single wl_keyboard event.