diff --git a/abstract_client.h b/abstract_client.h index a934410acd..7f746bc51b 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -109,6 +109,23 @@ public: virtual void growVertical(); virtual void shrinkVertical(); + /** + * These values represent positions inside an area + */ + enum Position { + // without prefix, they'd conflict with Qt::TopLeftCorner etc. :( + PositionCenter = 0x00, + PositionLeft = 0x01, + PositionRight = 0x02, + PositionTop = 0x04, + PositionBottom = 0x08, + PositionTopLeft = PositionLeft | PositionTop, + PositionTopRight = PositionRight | PositionTop, + PositionBottomLeft = PositionLeft | PositionBottom, + PositionBottomRight = PositionRight | PositionBottom + }; + virtual Position titlebarPosition() const = 0; + // TODO: remove boolean trap static bool belongToSameApplication(const AbstractClient* c1, const AbstractClient* c2, bool active_hack = false); diff --git a/client.h b/client.h index 146db86982..345f2ffe29 100644 --- a/client.h +++ b/client.h @@ -620,22 +620,7 @@ public: bool isClientSideDecorated() const; bool wantsShadowToBeRendered() const override; - /** - * These values represent positions inside an area - */ - enum Position { - // without prefix, they'd conflict with Qt::TopLeftCorner etc. :( - PositionCenter = 0x00, - PositionLeft = 0x01, - PositionRight = 0x02, - PositionTop = 0x04, - PositionBottom = 0x08, - PositionTopLeft = PositionLeft | PositionTop, - PositionTopRight = PositionRight | PositionTop, - PositionBottomLeft = PositionLeft | PositionBottom, - PositionBottomRight = PositionRight | PositionBottom - }; - Position titlebarPosition() const; + Position titlebarPosition() const override; void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const;