Commit f29ca8a2 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Remove unused method

Summary: mouseButtonToWindowOperation() is an artifact from the libkdecorations times.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 1dd3c7e8
......@@ -1132,29 +1132,6 @@ void Workspace::performWindowOperation(AbstractClient* c, Options::WindowOperati
* 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)
......@@ -201,7 +201,6 @@ public:
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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment