mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 22:20:16 +01:00
test: input - set valuators mask for event to core conversion
Commitde8be07cc0adds 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> (cherry picked from commit290af0418f) Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
814413faef
commit
acd78f7fdc
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.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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue