summaryrefslogtreecommitdiff
path: root/src/SharedDefs.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-11 15:18:04 +0000
committerVaxry <vaxry@vaxry.net>2023-11-11 15:18:17 +0000
commitbea828ea4585bab206b8772b838f496e0eada12e (patch)
treefa03be2903d8270b307fa1a3e0389fe65a4bb505 /src/SharedDefs.hpp
parentc5d1faf72dc5e7e4fa357007974ced0f573f1f32 (diff)
decoration-positioner: improve extent handling
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r--src/SharedDefs.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp
index 4e4217d2..19d26b61 100644
--- a/src/SharedDefs.hpp
+++ b/src/SharedDefs.hpp
@@ -42,4 +42,8 @@ struct SWindowDecorationExtents {
SWindowDecorationExtents round() {
return {topLeft.round(), bottomRight.round()};
}
+
+ bool operator==(const SWindowDecorationExtents& other) const {
+ return topLeft == other.topLeft && bottomRight == other.bottomRight;
+ }
}; \ No newline at end of file