1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 12:37:44 +00:00

WindowServer: Mouse switching between system menu and app menu was broken.

This commit is contained in:
Andreas Kling 2019-04-17 12:06:09 +02:00
parent b77f9a5042
commit 18ef6b111b
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,8 @@
namespace AK {
template<typename T> class OwnPtr;
template<typename T>
class WeakPtr {
friend class Weakable<T>;
@ -43,6 +45,8 @@ public:
WeakLink<T>* leak_link() { return m_link.leak_ref(); }
bool operator==(const OwnPtr<T>& other) const { return ptr() == other.ptr(); }
private:
WeakPtr(RetainPtr<WeakLink<T>>&& link) : m_link(move(link)) { }