From adbae0f74d951e06c575bad3c81a944027dfe413 Mon Sep 17 00:00:00 2001 From: davc0n Date: Sun, 4 May 2025 00:13:29 +0200 Subject: protocols: refactor class member vars (a-m) (#10265) --- src/protocols/LayerShell.hpp | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/protocols/LayerShell.hpp') diff --git a/src/protocols/LayerShell.hpp b/src/protocols/LayerShell.hpp index b634c63c..c6c162a3 100644 --- a/src/protocols/LayerShell.hpp +++ b/src/protocols/LayerShell.hpp @@ -21,8 +21,9 @@ class CLayerShellRole : public ISurfaceRole { return SURFACE_ROLE_LAYER_SHELL; } - WP layerSurface; + WP m_layerSurface; }; + class CLayerShellResource { public: CLayerShellResource(SP resource_, SP surf_, std::string namespace_, PHLMONITOR pMonitor, zwlrLayerShellV1Layer layer); @@ -48,7 +49,7 @@ class CLayerShellResource { CSignal map; CSignal unmap; CSignal newPopup; // wlr_xdg_popup* - } events; + } m_events; struct SState { uint32_t anchor = 0; @@ -64,27 +65,27 @@ class CLayerShellResource { } margin; void reset(); - } current, pending; + } m_current, m_pending; - Vector2D size; - std::string layerNamespace; - std::string monitor = ""; - WP surface; - bool mapped = false; - bool configured = false; + Vector2D m_size; + std::string m_layerNamespace; + std::string m_monitor = ""; + WP m_surface; + bool m_mapped = false; + bool m_configured = false; private: - SP resource; + SP m_resource; struct { CHyprSignalListener commitSurface; CHyprSignalListener destroySurface; CHyprSignalListener unmapSurface; - } listeners; + } m_listeners; - bool closed = false; + bool m_closed = false; - std::vector> serials; + std::vector> m_serials; }; class CLayerShellProtocol : public IWaylandProtocol { @@ -99,8 +100,8 @@ class CLayerShellProtocol : public IWaylandProtocol { void onGetLayerSurface(CZwlrLayerShellV1* pMgr, uint32_t id, wl_resource* surface, wl_resource* output, zwlrLayerShellV1Layer layer, std::string namespace_); // - std::vector> m_vManagers; - std::vector> m_vLayers; + std::vector> m_managers; + std::vector> m_layers; friend class CLayerShellResource; }; -- cgit v1.2.3