Commit 5b53d240 authored by Martin Flöser's avatar Martin Flöser

Move ::packTo to AbstractClient

Base implementation which does nothing
parent 683fc061
......@@ -76,4 +76,10 @@ void AbstractClient::shrinkVertical()
{
}
void AbstractClient::packTo(int left, int top)
{
Q_UNUSED(left)
Q_UNUSED(top)
}
}
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment