diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-11 15:18:04 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-11 15:18:17 +0000 |
| commit | bea828ea4585bab206b8772b838f496e0eada12e (patch) | |
| tree | fa03be2903d8270b307fa1a3e0389fe65a4bb505 /src/SharedDefs.hpp | |
| parent | c5d1faf72dc5e7e4fa357007974ced0f573f1f32 (diff) | |
decoration-positioner: improve extent handling
Diffstat (limited to 'src/SharedDefs.hpp')
| -rw-r--r-- | src/SharedDefs.hpp | 4 |
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 |
