Placement::checkArea operates on AbstractClient
This commit is contained in:
parent
da2731be51
commit
78700e23fd
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue