diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2011-01-24 12:35:04 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-26 07:41:57 +1000 |
commit | e0c95ce2348a9c9afaa4862368c7a5ae6913457c (patch) | |
tree | c6377a3f07b1fa48ffaee4ffd9305f7a3148ffa5 /src | |
parent | a5961a8459614fcaa801a47cda07d3ee8246b16f (diff) |
Fill in mods/group->effective in XIQueryPointer()
the other XIModifierState/XIGroupState fields are being set correctly,
but the "effective" field was being left as undefined memory.
Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/XIQueryPointer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/XIQueryPointer.c b/src/XIQueryPointer.c index b3bfebc..e068a97 100644 --- a/src/XIQueryPointer.c +++ b/src/XIQueryPointer.c @@ -86,9 +86,12 @@ XIQueryPointer(Display *dpy, mods->base = rep.mods.base_mods; mods->latched = rep.mods.latched_mods; mods->locked = rep.mods.locked_mods; + mods->effective = mods->base | mods->latched | mods->locked; + group->base = rep.group.base_group; group->latched = rep.group.latched_group; group->locked = rep.group.locked_group; + group->effective = group->base | group->latched | group->locked; buttons->mask_len = rep.buttons_len * 4; buttons->mask = malloc(buttons->mask_len); |