summaryrefslogtreecommitdiff
path: root/src/desktop/Subsurface.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-29 14:26:02 +0000
committerVaxry <vaxry@vaxry.net>2024-02-29 14:26:02 +0000
commit2e111c8cf97d391c25fc6263660271fab605ece1 (patch)
treed0e38817bb633457a87eabae0fa109533937199f /src/desktop/Subsurface.hpp
parentb39dcfa497f84486569bf862092dfcfadbfd8747 (diff)
xdg: rewrite entire popup implementation
Diffstat (limited to 'src/desktop/Subsurface.hpp')
-rw-r--r--src/desktop/Subsurface.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/desktop/Subsurface.hpp b/src/desktop/Subsurface.hpp
index 22692192..a8babd70 100644
--- a/src/desktop/Subsurface.hpp
+++ b/src/desktop/Subsurface.hpp
@@ -5,15 +5,17 @@
#include "WLSurface.hpp"
class CWindow;
-struct SXDGPopup;
+class CPopup;
class CSubsurface {
public:
// root dummy nodes
CSubsurface(CWindow* pOwner);
+ CSubsurface(CPopup* pOwner);
// real nodes
CSubsurface(wlr_subsurface* pSubsurface, CWindow* pOwner);
+ CSubsurface(wlr_subsurface* pSubsurface, CPopup* pOwner);
~CSubsurface();
@@ -29,7 +31,6 @@ class CSubsurface {
void recheckDamageForSubsurfaces();
private:
-
DYNLISTENER(destroySubsurface);
DYNLISTENER(commitSubsurface);
DYNLISTENER(newSubsurface);
@@ -44,9 +45,12 @@ class CSubsurface {
CSubsurface* m_pParent = nullptr;
CWindow* m_pWindowParent = nullptr;
+ CPopup* m_pPopupParent = nullptr;
std::vector<std::unique_ptr<CSubsurface>> m_vChildren;
+ bool m_bInert = false;
+
void initSignals();
void initExistingSubsurfaces();
void checkSiblingDamage();