decoration-positioner: improve extent handling

This commit is contained in:
Vaxry
2023-11-11 15:18:04 +00:00
parent c5d1faf72d
commit bea828ea45
6 changed files with 60 additions and 17 deletions

View File

@@ -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;
}
};