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: https://phabricator.kde.org/D29504
This commit is contained in:
parent
1dd3c7e8ba
commit
f29ca8a293
2 changed files with 0 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue