From aa1e9161d5c5a1b7e4e59e7508dd5e35af76dae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 6 Mar 2015 08:58:59 +0100 Subject: [PATCH] Workspace::clientArea takes AbstractClient instead of Client --- geometry.cpp | 2 +- workspace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index acd0bf78fd..6cc6a93b7b 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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()); } diff --git a/workspace.h b/workspace.h index 5e78ce8b25..da8a779a18 100644 --- a/workspace.h +++ b/workspace.h @@ -127,7 +127,7 @@ public: Toplevel *findToplevel(std::function 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;