From 46b39c2b3849b8438811555605f5c6f6550cc4b4 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Thu, 3 Mar 2022 14:05:20 +0100 Subject: [PATCH] Some doc fixes relating to keymaps There are no client created keymaps anymore. --- src/libeis.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/libeis.h b/src/libeis.h index 0e27b2e..2d252a8 100644 --- a/src/libeis.h +++ b/src/libeis.h @@ -724,7 +724,7 @@ eis_device_new_keymap(struct eis_device *device, * * The keymap is constant for the lifetime of the device and assigned to * this device individually. Where the keymap has to change, remove the - * device and wait for the client to create a new one. + * device and create a new one. * * If a keymap is `NULL`, the device does not have an individual keymap * assigned. Note that this may mean the client needs to guess at the @@ -769,21 +769,15 @@ void eis_keymap_set_user_data(struct eis_keymap *eis_keymap, void *user_data); /** - * Return the device this keymap belongs to, or `NULL` if it has not yet - * been assigned to a device. - * - * If the keymap is a client-assigned keymap and the server has changed or - * unset the keymap with eis_device_keyboard_set_keymap(), this function - * returns `NULL`. - * + * Return the device this keymap belongs to. */ struct eis_device * eis_keymap_get_device(struct eis_keymap *keymap); /** * Return the keymap assigned to this device. The return value of this - * function is the client-assigned keymap (if any) before the call to - * eis_device_keyboard_set_keymap(), or the server-assigned one after. + * function is the keymap (if any) after the call to + * eis_keymap_add(). */ struct eis_keymap * eis_device_keyboard_get_keymap(struct eis_device *device);