diff --git a/include/boo/BooObject.hpp b/include/boo/BooObject.hpp index 611b47a..f843073 100644 --- a/include/boo/BooObject.hpp +++ b/include/boo/BooObject.hpp @@ -70,6 +70,8 @@ public: return static_cast(m_obj); } explicit operator bool() const noexcept { return m_obj != nullptr; } + constexpr bool operator==(const ObjToken& other) const noexcept { return m_obj == other.m_obj; } + constexpr bool operator!=(const ObjToken& other) const noexcept { return !(*this == other); } void reset() noexcept { if (m_obj) m_obj->decrement(); diff --git a/lib/x11/WindowXlib.cpp b/lib/x11/WindowXlib.cpp index fa47584..d85ae60 100644 --- a/lib/x11/WindowXlib.cpp +++ b/lib/x11/WindowXlib.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include