diff --git a/src/workspace.cpp b/src/workspace.cpp index 73a2119ef3..c816c23607 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -2358,14 +2358,9 @@ QRect Workspace::clientArea(clientAreaOption opt, const Toplevel *window, const 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 { - return clientArea(opt, window, screens()->number(pos)); + return clientArea(opt, screens()->number(pos), window->desktop()); } static QRegion strutsToRegion(StrutAreas areas, const StrutRects &strut) diff --git a/src/workspace.h b/src/workspace.h index 535b16a36d..f9aa4b4f65 100644 --- a/src/workspace.h +++ b/src/workspace.h @@ -143,7 +143,6 @@ public: QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const; QRect clientArea(clientAreaOption, const Toplevel *window) 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, int screen, int desktop) const;