diff options
Diffstat (limited to 'src/desktop/Subsurface.hpp')
| -rw-r--r-- | src/desktop/Subsurface.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/desktop/Subsurface.hpp b/src/desktop/Subsurface.hpp index 41958671..2983c7c1 100644 --- a/src/desktop/Subsurface.hpp +++ b/src/desktop/Subsurface.hpp @@ -10,12 +10,12 @@ class CWLSubsurfaceResource; class CSubsurface { public: // root dummy nodes - CSubsurface(PHLWINDOW pOwner); - CSubsurface(WP<CPopup> pOwner); + static UP<CSubsurface> create(PHLWINDOW pOwner); + static UP<CSubsurface> create(WP<CPopup> pOwner); // real nodes - CSubsurface(SP<CWLSubsurfaceResource> pSubsurface, PHLWINDOW pOwner); - CSubsurface(SP<CWLSubsurfaceResource> pSubsurface, WP<CPopup> pOwner); + static UP<CSubsurface> create(SP<CWLSubsurfaceResource> pSubsurface, PHLWINDOW pOwner); + static UP<CSubsurface> create(SP<CWLSubsurfaceResource> pSubsurface, WP<CPopup> pOwner); ~CSubsurface() = default; @@ -37,6 +37,8 @@ class CSubsurface { WP<CSubsurface> m_pSelf; private: + CSubsurface() = default; + struct { CHyprSignalListener destroySubsurface; CHyprSignalListener commitSubsurface; |
