mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Start using WeakPtr for some of the WindowManager window pointers.
This commit is contained in:
parent
16fff6dff7
commit
560405667e
5 changed files with 29 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "Rect.h"
|
||||
#include "Color.h"
|
||||
#include <AK/HashTable.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
||||
class MouseEvent;
|
||||
class PaintEvent;
|
||||
|
@ -41,7 +42,8 @@ private:
|
|||
HashTable<Window*> m_windows;
|
||||
Widget* m_rootWidget { nullptr };
|
||||
|
||||
Window* m_dragWindow { nullptr };
|
||||
WeakPtr<Window> m_dragWindow;
|
||||
|
||||
Point m_dragOrigin;
|
||||
Point m_dragWindowOrigin;
|
||||
Rect m_lastDragRect;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue