summaryrefslogtreecommitdiff
path: root/test/input.c
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@ubuntu.com>2010-10-21 22:41:09 -0400
committerPeter Hutterer <peter.hutterer@who-t.net>2010-10-22 13:36:10 +1000
commit290af0418f8c94355e42ad81aa7779b90e173fc9 (patch)
treeaee9dd74d8cc3316994745335ff07c27d6925e44 /test/input.c
parent8990b31214bcbc08090604147287455bfde91c11 (diff)
test: input - set valuators mask for event to core conversion
Commit de8be07cc0a8163b6ef04455706fd5ca2cebe587 adds a requirement to event to core conversion that at least one of the X or Y valuators are set in the valuator mask. This commit fixes the event conversion test to be compliant. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/input.c')
-rw-r--r--test/input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/input.c b/test/input.c
index b90d3b4fd..f08e13b9e 100644
--- a/test/input.c
+++ b/test/input.c
@@ -182,6 +182,8 @@ static void dix_event_to_core(int type)
ev.time = time;
ev.root_y = x;
ev.root_x = y;
+ SetBit(ev.valuators.mask, 0);
+ SetBit(ev.valuators.mask, 1);
ev.root = ROOT_WINDOW_ID;
ev.corestate = state;
ev.detail.key = detail;