summaryrefslogtreecommitdiff
path: root/xkb
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-11-08 09:44:24 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-25 08:50:35 +1000
commit78167a98a8631ee3fad145ddc051ceb8487b9683 (patch)
tree370e54446af44a9de606cc41c646fc8ea747c27d /xkb
parent215f3d2e0f2a4ef6fc2f2c08fb991e1f00b747c8 (diff)
xkb: Restore XkbCopyDeviceKeymap
Removed in d35a02a767017f13db4bd4742eef49293d5a30ea, tigervnc 1.2.80 and xf86-video-nested need it for now. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb')
-rw-r--r--xkb/xkbUtils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
index 6cf6e79df..c14a790df 100644
--- a/xkb/xkbUtils.c
+++ b/xkb/xkbUtils.c
@@ -2027,6 +2027,12 @@ XkbDeviceApplyKeymap(DeviceIntPtr dst, XkbDescPtr desc)
return ret;
}
+Bool
+XkbCopyDeviceKeymap(DeviceIntPtr dst, DeviceIntPtr src)
+{
+ return XkbDeviceApplyKeymap(dst, src->key->xkbInfo->desc);
+}
+
int
XkbGetEffectiveGroup(XkbSrvInfoPtr xkbi, XkbStatePtr xkbState, CARD8 keycode)
{