From b39dcfa497f84486569bf862092dfcfadbfd8747 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 29 Feb 2024 13:03:38 +0000 Subject: refactor: move a few things to desktop/ --- src/helpers/Subsurface.hpp | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 src/helpers/Subsurface.hpp (limited to 'src/helpers/Subsurface.hpp') diff --git a/src/helpers/Subsurface.hpp b/src/helpers/Subsurface.hpp deleted file mode 100644 index a8f028af..00000000 --- a/src/helpers/Subsurface.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#pragma once - -#include "../defines.hpp" -#include -#include "WLSurface.hpp" - -class CWindow; - -class CSubsurface { - public: - // root dummy nodes - CSubsurface(CWindow* pOwner); - - // real nodes - CSubsurface(wlr_subsurface* pSubsurface, CWindow* pOwner); - - ~CSubsurface(); - - Vector2D coordsRelativeToParent(); - Vector2D coordsGlobal(); - - void onCommit(); - void onDestroy(); - void onNewSubsurface(wlr_subsurface* pSubsurface); - void onMap(); - void onUnmap(); - - void recheckDamageForSubsurfaces(); - - private: - DYNLISTENER(destroySubsurface); - DYNLISTENER(commitSubsurface); - DYNLISTENER(newSubsurface); - DYNLISTENER(mapSubsurface); - DYNLISTENER(unmapSubsurface); - - wlr_subsurface* m_pSubsurface = nullptr; - CWLSurface m_sWLSurface; - Vector2D m_vLastSize = {}; - - // if nullptr, means it's a dummy node - CSubsurface* m_pParent = nullptr; - - CWindow* m_pWindowParent = nullptr; - - std::vector> m_vChildren; - - void initSignals(); - void initExistingSubsurfaces(); - void checkSiblingDamage(); -}; \ No newline at end of file -- cgit v1.2.3