Commit d2884484 authored by Martin Flöser's avatar Martin Flöser

Move ::titlebarPosition to AbstractClient

parent a4d16deb
......@@ -300,4 +300,10 @@ ShadeMode AbstractClient::shadeMode() const
return ShadeNone;
}
AbstractClient::Position AbstractClient::titlebarPosition() const
{
// TODO: still needed, remove?
return PositionTop;
}
}
......@@ -242,7 +242,7 @@ public:
PositionBottomLeft = PositionLeft | PositionBottom,
PositionBottomRight = PositionRight | PositionBottom
};
virtual Position titlebarPosition() const = 0;
Position titlebarPosition() const;
// 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);
......
......@@ -2142,12 +2142,6 @@ QRect Client::decorationRect() const
return QRect(0, 0, width(), height());
}
Client::Position Client::titlebarPosition() const
{
// TODO: still needed, remove?
return PositionTop;
}
Xcb::Property Client::fetchFirstInTabBox() const
{
return Xcb::Property(false, m_client, atoms->kde_first_in_window_list,
......
......@@ -517,8 +517,6 @@ public:
bool isClientSideDecorated() const;
bool wantsShadowToBeRendered() const override;
Position titlebarPosition() const override;
void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const;
Xcb::Property fetchFirstInTabBox() 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