layers: refactor class member vars (#10149)

* layers: refactor class member vars

* popups: rename m_WLSurface to m_wlSurface
This commit is contained in:
davc0n 2025-04-24 20:49:49 +02:00 committed by GitHub
parent be6268a7ec
commit 0e80ecc534
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 487 additions and 484 deletions

View file

@ -41,32 +41,32 @@ class CPopup {
WP<CPopup> at(const Vector2D& globalCoords, bool allowsInput = false);
//
SP<CWLSurface> m_pWLSurface;
WP<CPopup> m_pSelf;
bool m_bMapped = false;
SP<CWLSurface> m_wlSurface;
WP<CPopup> m_self;
bool m_mapped = false;
private:
CPopup() = default;
// T1 owners, each popup has to have one of these
PHLWINDOWREF m_pWindowOwner;
PHLLSREF m_pLayerOwner;
PHLWINDOWREF m_windowOwner;
PHLLSREF m_layerOwner;
// T2 owners
WP<CPopup> m_pParent;
WP<CPopup> m_parent;
WP<CXDGPopupResource> m_pResource;
WP<CXDGPopupResource> m_resource;
Vector2D m_vLastSize = {};
Vector2D m_vLastPos = {};
Vector2D m_lastSize = {};
Vector2D m_lastPos = {};
bool m_bRequestedReposition = false;
bool m_requestedReposition = false;
bool m_bInert = false;
bool m_inert = false;
//
std::vector<UP<CPopup>> m_vChildren;
UP<CSubsurface> m_pSubsurfaceHead;
std::vector<UP<CPopup>> m_children;
UP<CSubsurface> m_subsurfaceHead;
struct {
CHyprSignalListener newPopup;
@ -76,7 +76,7 @@ class CPopup {
CHyprSignalListener commit;
CHyprSignalListener dismissed;
CHyprSignalListener reposition;
} listeners;
} m_listeners;
void initAllSignals();
void reposition();