From 0e80ecc5342db04c8c1f807fa6db4c703fb89e3a Mon Sep 17 00:00:00 2001 From: davc0n Date: Thu, 24 Apr 2025 20:49:49 +0200 Subject: layers: refactor class member vars (#10149) * layers: refactor class member vars * popups: rename m_WLSurface to m_wlSurface --- src/desktop/LayerSurface.hpp | 57 ++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 29 deletions(-) (limited to 'src/desktop/LayerSurface.hpp') diff --git a/src/desktop/LayerSurface.hpp b/src/desktop/LayerSurface.hpp index 6aba5591..6282d55f 100644 --- a/src/desktop/LayerSurface.hpp +++ b/src/desktop/LayerSurface.hpp @@ -22,44 +22,43 @@ class CLayerSurface { bool isFadedOut(); int popupsCount(); - PHLANIMVAR realPosition; - PHLANIMVAR realSize; - PHLANIMVAR alpha; + PHLANIMVAR m_realPosition; + PHLANIMVAR m_realSize; + PHLANIMVAR m_alpha; - WP layerSurface; - wl_list link; + WP m_layerSurface; // the header providing the enum type cannot be imported here - int interactivity = 0; + int m_interactivity = 0; - SP surface; + SP m_surface; - bool mapped = false; - uint32_t layer = 0; + bool m_mapped = false; + uint32_t m_layer = 0; - PHLMONITORREF monitor; + PHLMONITORREF m_monitor; - bool fadingOut = false; - bool readyToDelete = false; - bool noProcess = false; - bool noAnimations = false; + bool m_fadingOut = false; + bool m_readyToDelete = false; + bool m_noProcess = false; + bool m_noAnimations = false; - bool forceBlur = false; - bool forceBlurPopups = false; - int64_t xray = -1; - bool ignoreAlpha = false; - float ignoreAlphaValue = 0.f; - bool dimAround = false; - int64_t order = 0; + bool m_forceBlur = false; + bool m_forceBlurPopups = false; + int64_t m_xray = -1; + bool m_ignoreAlpha = false; + float m_ignoreAlphaValue = 0.f; + bool m_dimAround = false; + int64_t m_order = 0; - std::optional animationStyle; + std::optional m_animationStyle; - PHLLSREF self; + PHLLSREF m_self; - CBox geometry = {0, 0, 0, 0}; - Vector2D position; - std::string szNamespace = ""; - UP popupHead; + CBox m_geometry = {0, 0, 0, 0}; + Vector2D m_position; + std::string m_namespace = ""; + UP m_popupHead; pid_t getPID(); @@ -75,12 +74,12 @@ class CLayerSurface { CHyprSignalListener map; CHyprSignalListener unmap; CHyprSignalListener commit; - } listeners; + } m_listeners; void registerCallbacks(); // For the list lookup bool operator==(const CLayerSurface& rhs) const { - return layerSurface == rhs.layerSurface && monitor == rhs.monitor; + return m_layerSurface == rhs.m_layerSurface && m_monitor == rhs.m_monitor; } }; -- cgit v1.2.3