mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:37:45 +00:00
WindowServer: Mouse switching between system menu and app menu was broken.
This commit is contained in:
parent
b77f9a5042
commit
18ef6b111b
2 changed files with 5 additions and 1 deletions
|
@ -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)) { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue