Placement::checkArea operates on AbstractClient

This commit is contained in:
Martin Gräßlin 2015-05-27 10:22:43 +02:00
parent da2731be51
commit 78700e23fd
2 changed files with 3 additions and 2 deletions

View file

@ -610,7 +610,7 @@ void Placement::unclutterDesktop()
}
}
QRect Placement::checkArea(const Client* c, const QRect& area)
QRect Placement::checkArea(const AbstractClient* c, const QRect& area)
{
if (area.isNull())
return workspace()->clientArea(PlacementArea, c->geometry().center(), c->desktop());

View file

@ -34,6 +34,7 @@ class QObject;
namespace KWin
{
class AbstractClient;
class Client;
class Placement
@ -91,7 +92,7 @@ private:
void place(Client* c, QRect& area, Policy policy, Policy nextPlacement = Unknown);
void placeUnderMouse(Client* c, QRect& area, Policy next = Unknown);
void placeOnMainWindow(Client* c, QRect& area, Policy next = Unknown);
QRect checkArea(const Client*c, const QRect& area);
QRect checkArea(const AbstractClient*c, const QRect& area);
//CT needed for cascading+
struct DesktopCascadingInfo {