[PATCH] test: input - set valuators mask for event to core conversion
Chase Douglas
chase.douglas at canonical.com
Thu Oct 21 19:41:09 PDT 2010
From: Chase Douglas <chase.douglas at ubuntu.com>
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 at canonical.com>
---
test/input.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/test/input.c b/test/input.c
index b90d3b4..f08e13b 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;
--
1.7.1
More information about the xorg-devel
mailing list