From bea828ea4585bab206b8772b838f496e0eada12e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 11 Nov 2023 15:18:04 +0000 Subject: decoration-positioner: improve extent handling --- src/SharedDefs.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/SharedDefs.hpp') 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 -- cgit v1.2.3