Move ::packTo to AbstractClient

Base implementation which does nothing
This commit is contained in:
Martin Gräßlin 2015-03-12 11:02:09 +01:00
parent 683fc0613f
commit 5b53d2401e
3 changed files with 10 additions and 1 deletions

View file

@ -76,4 +76,10 @@ void AbstractClient::shrinkVertical()
{
}
void AbstractClient::packTo(int left, int top)
{
Q_UNUSED(left)
Q_UNUSED(top)
}
}

View file

@ -132,6 +132,9 @@ public:
};
virtual Position titlebarPosition() const = 0;
// a helper for the workspace window packing. tests for screen validity and updates since in maximization case as with normal moving
virtual void packTo(int left, int top);
// TODO: remove boolean trap
static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false);

View file

@ -639,7 +639,7 @@ public:
void setSessionInteract(bool needed);
virtual bool isClient() const;
// a helper for the workspace window packing. tests for screen validity and updates since in maximization case as with normal moving
void packTo(int left, int top);
void packTo(int left, int top) override;
template <typename T>
void print(T &stream) const;