From e55c54e2b956d7ec8f5fee0602aaab2efd31ba7c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 13 Jul 2018 15:22:23 +1000 Subject: [PATCH] fallback: move the mt slot state struct/enum here Not needed by the more generic evdev header Signed-off-by: Peter Hutterer --- src/evdev-fallback.h | 16 ++++++++++++++++ src/evdev.h | 15 --------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/evdev-fallback.h b/src/evdev-fallback.h index 49c06c2c..514db96e 100644 --- a/src/evdev-fallback.h +++ b/src/evdev-fallback.h @@ -45,6 +45,22 @@ enum debounce_state { DEBOUNCE_STATE_DISABLED = 999, }; +enum mt_slot_state { + SLOT_STATE_NONE, + SLOT_STATE_BEGIN, + SLOT_STATE_UPDATE, + SLOT_STATE_END, +}; + +struct mt_slot { + bool dirty; + enum mt_slot_state state; + int32_t seat_slot; + struct device_coords point; + struct device_coords hysteresis_center; + bool is_palm; +}; + struct fallback_dispatch { struct evdev_dispatch base; struct evdev_device *device; diff --git a/src/evdev.h b/src/evdev.h index de706f02..347086a1 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -157,21 +157,6 @@ enum evdev_debounce_state { DEBOUNCE_ACTIVE, }; -enum mt_slot_state { - SLOT_STATE_NONE, - SLOT_STATE_BEGIN, - SLOT_STATE_UPDATE, - SLOT_STATE_END, -}; - -struct mt_slot { - bool dirty; - enum mt_slot_state state; - int32_t seat_slot; - struct device_coords point; - struct device_coords hysteresis_center; -}; - struct evdev_device { struct libinput_device base;