From 683fc0613f5ffc224994a5fa5226348bfd53a7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 12 Mar 2015 10:55:14 +0100 Subject: [PATCH] Workspace::packPosition* operates on AbstractClient --- placement.cpp | 8 ++++---- workspace.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/placement.cpp b/placement.cpp index 5293be0704..f1319d6554 100644 --- a/placement.cpp +++ b/placement.cpp @@ -865,7 +865,7 @@ void Workspace::slotWindowQuickTileBottomRight() active_client->setQuickTileMode(Client::QuickTileBottom|Client::QuickTileRight, true); } -int Workspace::packPositionLeft(const Client* cl, int oldx, bool left_edge) const +int Workspace::packPositionLeft(const AbstractClient* cl, int oldx, bool left_edge) const { int newx = clientArea(MaximizeArea, cl).left(); if (oldx <= newx) // try another Xinerama screen @@ -893,7 +893,7 @@ int Workspace::packPositionLeft(const Client* cl, int oldx, bool left_edge) cons return newx; } -int Workspace::packPositionRight(const Client* cl, int oldx, bool right_edge) const +int Workspace::packPositionRight(const AbstractClient* cl, int oldx, bool right_edge) const { int newx = clientArea(MaximizeArea, cl).right(); if (oldx >= newx) // try another Xinerama screen @@ -921,7 +921,7 @@ int Workspace::packPositionRight(const Client* cl, int oldx, bool right_edge) co return newx; } -int Workspace::packPositionUp(const Client* cl, int oldy, bool top_edge) const +int Workspace::packPositionUp(const AbstractClient* cl, int oldy, bool top_edge) const { int newy = clientArea(MaximizeArea, cl).top(); if (oldy <= newy) // try another Xinerama screen @@ -949,7 +949,7 @@ int Workspace::packPositionUp(const Client* cl, int oldy, bool top_edge) const return newy; } -int Workspace::packPositionDown(const Client* cl, int oldy, bool bottom_edge) const +int Workspace::packPositionDown(const AbstractClient* cl, int oldy, bool bottom_edge) const { int newy = clientArea(MaximizeArea, cl).bottom(); if (oldy >= newy) // try another Xinerama screen diff --git a/workspace.h b/workspace.h index 89aeb2fa3e..737b1b7eb3 100644 --- a/workspace.h +++ b/workspace.h @@ -309,10 +309,10 @@ public: bool wasUserInteraction() const; bool sessionSaving() const; - int packPositionLeft(const Client* cl, int oldx, bool left_edge) const; - int packPositionRight(const Client* cl, int oldx, bool right_edge) const; - int packPositionUp(const Client* cl, int oldy, bool top_edge) const; - int packPositionDown(const Client* cl, int oldy, bool bottom_edge) const; + int packPositionLeft(const AbstractClient* cl, int oldx, bool left_edge) const; + int packPositionRight(const AbstractClient* cl, int oldx, bool right_edge) const; + int packPositionUp(const AbstractClient* cl, int oldy, bool top_edge) const; + int packPositionDown(const AbstractClient* cl, int oldy, bool bottom_edge) const; void cancelDelayFocus(); void requestDelayFocus(Client*);