mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-16 06:10:34 +01:00
libeis: fix the client-side keymap assignment
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
31988e056d
commit
f06095e0c8
3 changed files with 4 additions and 3 deletions
|
|
@ -184,7 +184,7 @@ client_new_device(struct eis_client *client,
|
|||
eis_device_set_touch_range(device, dim_touch->width,
|
||||
dim_touch->height);
|
||||
|
||||
eis_device_set_keymap(device, keymap_type, keymap_fd, keymap_sz);
|
||||
eis_device_set_client_keymap(device, keymap_type, keymap_fd, keymap_sz);
|
||||
|
||||
log_debug(eis_client_parent(client), "New device %d caps: %#x\n",
|
||||
id, capabilities);
|
||||
|
|
|
|||
|
|
@ -89,13 +89,14 @@ eis_device_set_touch_range(struct eis_device *device,
|
|||
void
|
||||
eis_device_set_client_keymap(struct eis_device *device,
|
||||
enum eis_keymap_type type,
|
||||
int keymap_fd)
|
||||
int keymap_fd, size_t size)
|
||||
{
|
||||
if (device->state != EIS_DEVICE_STATE_NEW)
|
||||
return;
|
||||
|
||||
device->keymap.fd = dup(keymap_fd);
|
||||
device->keymap.type = type;
|
||||
device->keymap.size = size;
|
||||
}
|
||||
|
||||
_public_ void
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ eis_device_set_touch_range(struct eis_device *device,
|
|||
void
|
||||
eis_device_set_client_keymap(struct eis_device *device,
|
||||
enum eis_keymap_type type,
|
||||
int keymap_fd);
|
||||
int keymap_fd, size_t size);
|
||||
|
||||
void
|
||||
eis_device_set_keymap(struct eis_device *device,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue