1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

WindowServer: Tell WSWindows who their CObject parent is

Instead of using a weird "internal owner" pointer, just set the owning
object as the CObject::parent of WSWindow.
This commit is contained in:
Andreas Kling 2019-08-18 11:52:19 +02:00
parent 68e94f0a2e
commit 9d57e7ed68
2 changed files with 8 additions and 6 deletions

View file

@ -153,7 +153,6 @@ private:
void handle_mouse_event(const WSMouseEvent&);
WSClientConnection* m_client { nullptr };
CObject* m_internal_owner { nullptr };
String m_title;
Rect m_rect;
WSWindowType m_type { WSWindowType::Normal };