X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fstrut.hh;h=71553da2e74a09845d8f928948803caf25af4212;hb=bfea000a7407e51b5659590415e410a47f6f046b;hp=365055d4a1e8818afc16200d7245f34778cd2a7d;hpb=36ed114f49544eb17bacf4c359d67bc5d9324b13;p=chaz%2Fopenbox diff --git a/otk/strut.hh b/otk/strut.hh index 365055d4..71553da2 100644 --- a/otk/strut.hh +++ b/otk/strut.hh @@ -23,6 +23,11 @@ struct Strut { Strut(void): top(0), bottom(0), left(0), right(0) {} //! Constructs a new Strut with margins Strut(int l, int t, int r, int b): top(t), bottom(b), left(l), right(r) {} + + bool operator==(const Strut &o) const { + return top == o.top && bottom == o.bottom && left == o.left && + right == o.right; + } }; }