Drop Workspace::clientArea(clientAreaOption opt, const Toplevel *window, int screen)

It's unused.
This commit is contained in:
Vlad Zahorodnii 2021-08-28 19:08:23 +03:00 committed by Aleix Pol Gonzalez
parent b80fbe6fb0
commit acb5c04fae
2 changed files with 1 additions and 7 deletions

View file

@ -2358,14 +2358,9 @@ QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const
return clientArea(opt, window, output->geometry().center()); return clientArea(opt, window, output->geometry().center());
} }
QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, int screen) const
{
return clientArea(opt, screen, window->desktop());
}
QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const QPoint &pos) const QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const QPoint &pos) const
{ {
return clientArea(opt, window, screens()->number(pos)); return clientArea(opt, screens()->number(pos), window->desktop());
} }
static QRegion strutsToRegion(StrutAreas areas, const StrutRects &strut) static QRegion strutsToRegion(StrutAreas areas, const StrutRects &strut)

View file

@ -143,7 +143,6 @@ public:
QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const; QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const;
QRect clientArea(clientAreaOption, const Toplevel *window) const; QRect clientArea(clientAreaOption, const Toplevel *window) const;
QRect clientArea(clientAreaOption, const Toplevel *window, const AbstractOutput *output) const; QRect clientArea(clientAreaOption, const Toplevel *window, const AbstractOutput *output) const;
QRect clientArea(clientAreaOption, const Toplevel *window, int screen) const;
QRect clientArea(clientAreaOption, const Toplevel *window, const QPoint &pos) const; QRect clientArea(clientAreaOption, const Toplevel *window, const QPoint &pos) const;
QRect clientArea(clientAreaOption, int screen, int desktop) const; QRect clientArea(clientAreaOption, int screen, int desktop) const;