summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-29 00:41:45 +0300
committerGitHub <noreply@github.com>2026-03-28 21:41:45 +0000
commit38a7f03cf0e5ee116794a78581634ba3dab508fa (patch)
tree969891411b2af4e437a183004018cfc359a3057e /src/debug
parentef2e8dfd5f7e6ee55fa7bc48e44974e64938d14a (diff)
renderer: refactor part 7: api fixes (#13631)
Part 7 of ujin's refactors --------- Co-authored-by: Vaxry <vaxry@vaxry.net>
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp2
-rw-r--r--src/debug/HyprDebugOverlay.hpp10
-rw-r--r--src/debug/HyprNotificationOverlay.hpp2
3 files changed, 9 insertions, 5 deletions
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 <sys/ucred.h>
#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 <map>
#include <deque>
-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<ITexture> m_texture;
+ SP<Render::ITexture> m_texture;
friend class CHyprMonitorDebugOverlay;
- friend class IHyprRenderer;
+ friend class Render::IHyprRenderer;
};
inline UP<CHyprDebugOverlay> 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<ITexture> m_texture;
+ SP<Render::ITexture> m_texture;
};
inline UP<CHyprNotificationOverlay> g_pHyprNotificationOverlay;