diff --git a/useractions.cpp b/useractions.cpp --- a/useractions.cpp +++ b/useractions.cpp @@ -1132,29 +1132,6 @@ } } -/** - * Called by the decoration in the new API to determine what buttons the user has configured for - * window tab dragging and the operations menu. - */ -Options::WindowOperation X11Client::mouseButtonToWindowOperation(Qt::MouseButtons button) -{ - Options::MouseCommand com = Options::MouseNothing; - bool active = isActive(); - if (!wantsInput()) // we cannot be active, use it anyway - active = true; - - if (button == Qt::LeftButton) - com = active ? options->commandActiveTitlebar1() : options->commandInactiveTitlebar1(); - else if (button == Qt::MidButton) - com = active ? options->commandActiveTitlebar2() : options->commandInactiveTitlebar2(); - else if (button == Qt::RightButton) - com = active ? options->commandActiveTitlebar3() : options->commandInactiveTitlebar3(); - - if (com == Options::MouseOperationsMenu) - return Options::OperationsOp; - return Options::NoOp; -} - /** * Performs a mouse command on this client (see options.h) */ diff --git a/x11client.h b/x11client.h --- a/x11client.h +++ b/x11client.h @@ -201,7 +201,6 @@ bool providesContextHelp() const override; - Options::WindowOperation mouseButtonToWindowOperation(Qt::MouseButtons button); bool performMouseCommand(Options::MouseCommand, const QPoint& globalPos) override; QRect adjustedClientArea(const QRect& desktop, const QRect& area) const;