From a00cad1a480016fbc583302e24f407b1b9973c55 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 21 Sep 2024 15:56:19 +0300 Subject: [PATCH] Merge forward and tablet input filters The primary purpose of the tablet input filter is to forward tablet input to the clients. On the other hand, the purpose of the forward input filter is to send input to the clients too. In order to clean things up, this change merges the two. --- src/input.cpp | 15 --------------- src/input.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index 68f7ce26e3..ac58fc4c04 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -2056,18 +2056,6 @@ public: seat->cancelPointerHoldGesture(); return true; } -}; - -/** - * Handles input coming from a tablet device (e.g. wacom) often with a pen - */ -class TabletInputFilter : public QObject, public InputEventFilter -{ -public: - TabletInputFilter() - : InputEventFilter(InputFilterOrder::Tablet) - { - } bool tabletToolEvent(TabletEvent *event) override { @@ -2871,9 +2859,6 @@ void InputRedirection::setupInputFilters() m_forwardFilter = std::make_unique(); installInputEventFilter(m_forwardFilter.get()); - - m_tabletFilter = std::make_unique(); - installInputEventFilter(m_tabletFilter.get()); } void InputRedirection::handleInputConfigChanged(const KConfigGroup &group) diff --git a/src/input.h b/src/input.h index 0cb9582ef3..27053c733d 100644 --- a/src/input.h +++ b/src/input.h @@ -340,7 +340,6 @@ private: std::unique_ptr m_internalWindowFilter; std::unique_ptr m_inputKeyboardFilter; std::unique_ptr m_forwardFilter; - std::unique_ptr m_tabletFilter; std::unique_ptr m_hideCursorSpy; std::unique_ptr m_userActivitySpy; @@ -385,7 +384,6 @@ enum Order { InternalWindow, InputMethod, Forward, - Tablet }; }