diff --git a/input.cpp b/input.cpp index eff37a0120..72d1c90022 100644 --- a/input.cpp +++ b/input.cpp @@ -1560,16 +1560,6 @@ Qt::MouseButtons InputRedirection::qtButtonStates() const return buttons; } -bool InputRedirection::areButtonsPressed() const -{ - for (auto it = m_pointerButtons.constBegin(); it != m_pointerButtons.constEnd(); ++it) { - if (it.value() == KWin::InputRedirection::PointerButtonPressed) { - return true; - } - } - return false; -} - static bool acceptsInput(Toplevel *t, const QPoint &pos) { const QRegion input = t->inputShape(); diff --git a/input.h b/input.h index 10cbb8fea8..7c89bbd6a8 100644 --- a/input.h +++ b/input.h @@ -214,7 +214,6 @@ private: void updatePointerInternalWindow(); void pointerInternalWindowVisibilityChanged(bool visible); void installCursorFromDecoration(); - bool areButtonsPressed() const; void setupWorkspace(); void reconfigure(); void setupInputFilters();