Workspace::clientArea takes AbstractClient instead of Client

icc-effect-5.14.5
Martin Gräßlin 2015-03-06 08:58:59 +01:00
parent 7c187359a7
commit aa1e9161d5
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ QRect Workspace::clientArea(clientAreaOption opt, const QPoint& p, int desktop)
return clientArea(opt, screens()->number(p), desktop);
}
QRect Workspace::clientArea(clientAreaOption opt, const Client* c) const
QRect Workspace::clientArea(clientAreaOption opt, const AbstractClient* c) const
{
return clientArea(opt, c->geometry().center(), c->desktop());
}

View File

@ -127,7 +127,7 @@ public:
Toplevel *findToplevel(std::function<bool (const Toplevel*)> func) const;
QRect clientArea(clientAreaOption, const QPoint& p, int desktop) const;
QRect clientArea(clientAreaOption, const Client* c) const;
QRect clientArea(clientAreaOption, const AbstractClient* c) const;
QRect clientArea(clientAreaOption, int screen, int desktop) const;
QRegion restrictedMoveArea(int desktop, StrutAreas areas = StrutAreaAll) const;