From bca7804bb6e1bf5ce5a99b9ae4806be25e36993c Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sat, 27 Apr 2024 12:43:12 +0100 Subject: internal: Window storage rework - part 1 (#5762) * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks --- src/desktop/WLSurface.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/desktop/WLSurface.hpp') diff --git a/src/desktop/WLSurface.hpp b/src/desktop/WLSurface.hpp index d018d11f..ffb81cc0 100644 --- a/src/desktop/WLSurface.hpp +++ b/src/desktop/WLSurface.hpp @@ -17,7 +17,7 @@ class CWLSurface { // anonymous surfaces are non-desktop components, e.g. a cursor surface or a DnD void assign(wlr_surface* pSurface); - void assign(wlr_surface* pSurface, CWindow* pOwner); + void assign(wlr_surface* pSurface, PHLWINDOW pOwner); void assign(wlr_surface* pSurface, SLayerSurface* pOwner); void assign(wlr_surface* pSurface, CSubsurface* pOwner); void assign(wlr_surface* pSurface, CPopup* pOwner); @@ -37,7 +37,7 @@ class CWLSurface { void onCommit(); // getters for owners. - CWindow* getWindow(); + PHLWINDOW getWindow(); SLayerSurface* getLayer(); CPopup* getPopup(); CSubsurface* getSubsurface(); @@ -94,7 +94,7 @@ class CWLSurface { wlr_surface* m_pWLRSurface = nullptr; - CWindow* m_pWindowOwner = nullptr; + PHLWINDOWREF m_pWindowOwner; SLayerSurface* m_pLayerOwner = nullptr; CPopup* m_pPopupOwner = nullptr; CSubsurface* m_pSubsurfaceOwner = nullptr; -- cgit v1.2.3