Commit 78700e23 authored by Martin Flöser's avatar Martin Flöser
Browse files

Placement::checkArea operates on AbstractClient

parent da2731be
......@@ -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());
......
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment