1
Fork 0
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:
Andreas Kling 2018-10-13 17:00:45 +02:00
parent 16fff6dff7
commit 560405667e
5 changed files with 29 additions and 8 deletions

View file

@ -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;