summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authoruser111111111111111111111111111111111 <192911676+user111111111111111111111111111111111@users.noreply.github.com>2025-01-17 15:21:35 +0000
committerGitHub <noreply@github.com>2025-01-17 15:21:35 +0000
commit2bad73354a5dbb9be8ba9a39b6238017a216a25b (patch)
tree47314035a3cc3ffc90a04730d2fea9453328c4c8 /src/debug
parent0dc7367a7006cc3cc877d52bf34c4998144bff84 (diff)
core: cleanup header includes (#9088)
Cleanup some unneeded includes to speed up compilation
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/CrashReporter.cpp1
-rw-r--r--src/debug/HyprCtl.cpp10
-rw-r--r--src/debug/HyprCtl.hpp2
-rw-r--r--src/debug/HyprDebugOverlay.cpp1
-rw-r--r--src/debug/HyprDebugOverlay.hpp3
-rw-r--r--src/debug/HyprNotificationOverlay.cpp4
-rw-r--r--src/debug/HyprNotificationOverlay.hpp1
-rw-r--r--src/debug/Log.cpp1
-rw-r--r--src/debug/Log.hpp2
9 files changed, 18 insertions, 7 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp
index 7bff7295..f6e0b55f 100644
--- a/src/debug/CrashReporter.cpp
+++ b/src/debug/CrashReporter.cpp
@@ -6,6 +6,7 @@
#include <cerrno>
#include <sys/stat.h>
#include <filesystem>
+#include "../helpers/MiscFunctions.hpp"
#include "../plugins/PluginSystem.hpp"
#include "../signal-safe.hpp"
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 7edace21..41b0abe1 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -39,8 +39,18 @@ using namespace Hyprutils::String;
#include "debug/RollingLogFollow.hpp"
#include "config/ConfigManager.hpp"
#include "helpers/MiscFunctions.hpp"
+#include "../desktop/LayerSurface.hpp"
#include "../version.h"
+#include "../Compositor.hpp"
+#include "../managers/input/InputManager.hpp"
+#include "../managers/XWaylandManager.hpp"
+#include "../managers/LayoutManager.hpp"
+#include "../plugins/PluginSystem.hpp"
+#include "../managers/AnimationManager.hpp"
+#include "../debug/HyprNotificationOverlay.hpp"
+#include "../render/Renderer.hpp"
+
static void trimTrailingComma(std::string& str) {
if (!str.empty() && str.back() == ',')
str.pop_back();
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index c1bf51ca..2603612c 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -1,8 +1,8 @@
#pragma once
-#include "../Compositor.hpp"
#include <fstream>
#include "../helpers/MiscFunctions.hpp"
+#include "../desktop/Window.hpp"
#include <functional>
// exposed for main.cpp
diff --git a/src/debug/HyprDebugOverlay.cpp b/src/debug/HyprDebugOverlay.cpp
index d72e2144..6e7a0407 100644
--- a/src/debug/HyprDebugOverlay.cpp
+++ b/src/debug/HyprDebugOverlay.cpp
@@ -4,6 +4,7 @@
#include "../Compositor.hpp"
#include "../render/pass/TexPassElement.hpp"
#include "../render/Renderer.hpp"
+#include "../managers/AnimationManager.hpp"
CHyprDebugOverlay::CHyprDebugOverlay() {
m_pTexture = makeShared<CTexture>();
diff --git a/src/debug/HyprDebugOverlay.hpp b/src/debug/HyprDebugOverlay.hpp
index 42cdac55..a58ecffc 100644
--- a/src/debug/HyprDebugOverlay.hpp
+++ b/src/debug/HyprDebugOverlay.hpp
@@ -1,7 +1,6 @@
#pragma once
#include "../defines.hpp"
-#include "../helpers/Monitor.hpp"
#include "../render/Texture.hpp"
#include <cairo/cairo.h>
#include <map>
@@ -49,4 +48,4 @@ class CHyprDebugOverlay {
friend class CHyprRenderer;
};
-inline std::unique_ptr<CHyprDebugOverlay> g_pDebugOverlay; \ No newline at end of file
+inline std::unique_ptr<CHyprDebugOverlay> g_pDebugOverlay;
diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp
index 504ad6c9..09125243 100644
--- a/src/debug/HyprNotificationOverlay.cpp
+++ b/src/debug/HyprNotificationOverlay.cpp
@@ -5,6 +5,10 @@
#include "../config/ConfigValue.hpp"
#include "../render/pass/TexPassElement.hpp"
+#include "../managers/AnimationManager.hpp"
+#include "../managers/HookSystemManager.hpp"
+#include "../render/Renderer.hpp"
+
static inline auto iconBackendFromLayout(PangoLayout* layout) {
// preference: Nerd > FontAwesome > text
auto eIconBackendChecks = std::array<eIconBackend, 2>{ICONS_BACKEND_NF, ICONS_BACKEND_FA};
diff --git a/src/debug/HyprNotificationOverlay.hpp b/src/debug/HyprNotificationOverlay.hpp
index 3ff0b35c..2546d04f 100644
--- a/src/debug/HyprNotificationOverlay.hpp
+++ b/src/debug/HyprNotificationOverlay.hpp
@@ -2,7 +2,6 @@
#include "../defines.hpp"
#include "../helpers/Timer.hpp"
-#include "../helpers/Monitor.hpp"
#include "../render/Texture.hpp"
#include "../SharedDefs.hpp"
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp
index 1563628c..9cf86345 100644
--- a/src/debug/Log.cpp
+++ b/src/debug/Log.cpp
@@ -1,6 +1,5 @@
#include "Log.hpp"
#include "../defines.hpp"
-#include "../Compositor.hpp"
#include "RollingLogFollow.hpp"
#include <fstream>
diff --git a/src/debug/Log.hpp b/src/debug/Log.hpp
index 9696aa90..3791aeac 100644
--- a/src/debug/Log.hpp
+++ b/src/debug/Log.hpp
@@ -5,8 +5,6 @@
#include <fstream>
#include <chrono>
#include <mutex>
-#include "../includes.hpp"
-#include "../helpers/MiscFunctions.hpp"
#define LOGMESSAGESIZE 1024
#define ROLLING_LOG_SIZE 4096