summaryrefslogtreecommitdiff
path: root/src/SharedDefs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r--src/SharedDefs.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp
index da7f6938..3dfb272a 100644
--- a/src/SharedDefs.hpp
+++ b/src/SharedDefs.hpp
@@ -52,4 +52,9 @@ struct SWindowDecorationExtents {
bool operator==(const SWindowDecorationExtents& other) const {
return topLeft == other.topLeft && bottomRight == other.bottomRight;
}
-}; \ No newline at end of file
+
+ void addExtents(const SWindowDecorationExtents& other) {
+ topLeft = topLeft.getComponentMax(other.topLeft);
+ bottomRight = bottomRight.getComponentMax(other.bottomRight);
+ }
+};