[PATCH 1/3] xkb: Repurpose XkbCopyDeviceKeymap to apply a given keymap to a device
Daniel Stone
daniel at fooishbar.org
Mon Oct 21 19:04:55 CEST 2013
Hi,
On 21 October 2013 13:41, Rui Matos <tiagomatos at gmail.com> wrote:
> @@ -230,7 +230,7 @@ CopyKeyClass(DeviceIntPtr device, DeviceIntPtr master)
>
> mk->sourceid = device->id;
>
> - if (!XkbCopyDeviceKeymap(master, device))
> + if (device->key && !XkbDeviceApplyKeymap(master, device->key->xkbInfo->desc))
> FatalError("Couldn't pivot keymap from device to core!\n");
> }
CopyKeyClass is only called when device->key is set.
But for the rest:
Reviewed-by: Daniel Stone <daniel at fooishbar.org>
Cheers,
Daniel
More information about the wayland-devel
mailing list