mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-25 21:02:21 +00:00
test: input - set valuators mask for event to core conversion
Commit de8be07cc0 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>
This commit is contained in:
parent
8990b31214
commit
290af0418f
1 changed files with 2 additions and 0 deletions
|
|
@ -182,6 +182,8 @@ static void dix_event_to_core(int type)
|
||||||
ev.time = time;
|
ev.time = time;
|
||||||
ev.root_y = x;
|
ev.root_y = x;
|
||||||
ev.root_x = y;
|
ev.root_x = y;
|
||||||
|
SetBit(ev.valuators.mask, 0);
|
||||||
|
SetBit(ev.valuators.mask, 1);
|
||||||
ev.root = ROOT_WINDOW_ID;
|
ev.root = ROOT_WINDOW_ID;
|
||||||
ev.corestate = state;
|
ev.corestate = state;
|
||||||
ev.detail.key = detail;
|
ev.detail.key = detail;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue