summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-24 11:18:10 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-12 16:33:48 +1000
commitba0407100fd1314feb8dc0eace4352d00709cab3 (patch)
tree7b03ade7f3aed01fce74df9876e9a5ca240aa456 /src
parentd6439bc4c5c26577d0c839555a85bd1a9db784f3 (diff)
Add effective modifiers/group to events - require inputproto 1.9.99.13
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/XExtInt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/XExtInt.c b/src/XExtInt.c
index 0724e4a..e1d7971 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1316,9 +1316,11 @@ wireToDeviceEvent(xXIDeviceEvent *in, XGenericEventCookie* cookie)
out->mods->base = in->mods.base_mods;
out->mods->locked = in->mods.locked_mods;
out->mods->latched = in->mods.latched_mods;
+ out->mods->effective = in->mods.effective_mods;
out->group->base = in->group.base_group;
out->group->locked = in->group.locked_group;
out->group->latched = in->group.latched_group;
+ out->group->effective = in->group.effective_group;
return 1;
}
@@ -1604,9 +1606,11 @@ wireToEnterLeave(xXIEnterEvent *in, XGenericEventCookie *cookie)
out->mods->base = in->mods.base_mods;
out->mods->locked = in->mods.locked_mods;
out->mods->latched = in->mods.latched_mods;
+ out->mods->effective = in->mods.effective_mods;
out->group->base = in->group.base_group;
out->group->locked = in->group.locked_group;
out->group->latched = in->group.latched_group;
+ out->group->effective = in->group.effective_group;
out->buttons->mask_len = in->buttons_len * 4;
memcpy(out->buttons->mask, &in[1], out->buttons->mask_len);