summaryrefslogtreecommitdiff
path: root/src/layout/target/Target.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/target/Target.hpp')
-rw-r--r--src/layout/target/Target.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/layout/target/Target.hpp b/src/layout/target/Target.hpp
index dcaefdb4..bae5eee5 100644
--- a/src/layout/target/Target.hpp
+++ b/src/layout/target/Target.hpp
@@ -25,6 +25,11 @@ namespace Layout {
std::optional<Vector2D> pos;
};
+ struct STargetBox {
+ CBox logicalBox;
+ CBox visualBox;
+ };
+
class ITarget {
public:
virtual ~ITarget() = default;
@@ -32,7 +37,8 @@ namespace Layout {
virtual eTargetType type() = 0;
// position is within its space
- virtual void setPositionGlobal(const CBox& box);
+ virtual void setPositionGlobal(const STargetBox& box);
+ void setPositionGlobal(const CBox& box);
virtual CBox position() const;
virtual void assignToSpace(const SP<CSpace>& space, std::optional<Vector2D> focalPoint = std::nullopt);
virtual void setSpaceGhost(const SP<CSpace>& space);
@@ -67,7 +73,7 @@ namespace Layout {
protected:
ITarget() = default;
- CBox m_box;
+ STargetBox m_box;
SP<CSpace> m_space;
WP<ITarget> m_self;
Vector2D m_floatingSize;
@@ -76,4 +82,4 @@ namespace Layout {
Vector2D m_pseudoSize = {1280, 720};
bool m_wasTiling = false;
};
-}; \ No newline at end of file
+};