From 38a7f03cf0e5ee116794a78581634ba3dab508fa Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sun, 29 Mar 2026 00:41:45 +0300 Subject: renderer: refactor part 7: api fixes (#13631) Part 7 of ujin's refactors --------- Co-authored-by: Vaxry --- src/debug/HyprCtl.cpp | 2 ++ src/debug/HyprDebugOverlay.hpp | 10 ++++++---- src/debug/HyprNotificationOverlay.hpp | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'src/debug') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index df147ee9..01e49e74 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -71,6 +71,8 @@ using namespace Hyprutils::OS; #include "../layout/algorithm/TiledAlgorithm.hpp" #include "../layout/supplementary/WorkspaceAlgoMatcher.hpp" +using namespace Render::GL; + #if defined(__DragonFly__) || defined(__FreeBSD__) #include #define CRED_T xucred diff --git a/src/debug/HyprDebugOverlay.hpp b/src/debug/HyprDebugOverlay.hpp index 775ce62c..375ecc2c 100644 --- a/src/debug/HyprDebugOverlay.hpp +++ b/src/debug/HyprDebugOverlay.hpp @@ -6,7 +6,9 @@ #include #include -class IHyprRenderer; +namespace Render { + class IHyprRenderer; +} class CHyprMonitorDebugOverlay { public: @@ -25,7 +27,7 @@ class CHyprMonitorDebugOverlay { PHLMONITORREF m_monitor; CBox m_lastDrawnBox; - friend class IHyprRenderer; + friend class Render::IHyprRenderer; }; class CHyprDebugOverlay { @@ -42,10 +44,10 @@ class CHyprDebugOverlay { cairo_surface_t* m_cairoSurface = nullptr; cairo_t* m_cairo = nullptr; - SP m_texture; + SP m_texture; friend class CHyprMonitorDebugOverlay; - friend class IHyprRenderer; + friend class Render::IHyprRenderer; }; inline UP g_pDebugOverlay; diff --git a/src/debug/HyprNotificationOverlay.hpp b/src/debug/HyprNotificationOverlay.hpp index ec7aed72..c2ecbfe0 100644 --- a/src/debug/HyprNotificationOverlay.hpp +++ b/src/debug/HyprNotificationOverlay.hpp @@ -57,7 +57,7 @@ class CHyprNotificationOverlay { PHLMONITORREF m_lastMonitor; Vector2D m_lastSize = Vector2D(-1, -1); - SP m_texture; + SP m_texture; }; inline UP g_pHyprNotificationOverlay; -- cgit v1.2.3