From 78700e23fd6f850bef20ca1313e41afd3284e7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 27 May 2015 10:22:43 +0200 Subject: [PATCH] Placement::checkArea operates on AbstractClient --- placement.cpp | 2 +- placement.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/placement.cpp b/placement.cpp index f1319d6554..59e574c31e 100644 --- a/placement.cpp +++ b/placement.cpp @@ -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()); diff --git a/placement.h b/placement.h index ef3469fd24..a04eed359a 100644 --- a/placement.h +++ b/placement.h @@ -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 {