Initialize the slots correctly when enabling ABS_MT_SLOT
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 14 Jun 2019 01:18:37 +0000 (11:18 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 17 Jun 2019 23:31:41 +0000 (09:31 +1000)
commitda67db5f59be147911cec441e9fd81d2b3b17cf3
tree8f90a811bbf7bedf22315ea46b54fb4342912903
parent4d745caab489e4cb60f75e785e16b965a7fc65a7
Initialize the slots correctly when enabling ABS_MT_SLOT

Previously, enabling or disabling ABS_MT_SLOT would not change the actual
slots, it was treated as a normal bitflag. This means we couldn't initialize a
libevdev context from scratch and have it behave like a correct MT context.

Fixes #4

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev.c
test/Makefile.am
test/test-context.c [new file with mode: 0644]