summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index 3f239cef..fd9cad75 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -42,7 +42,7 @@ using namespace Hyprutils::OS;
#include "../config/shared/animation/AnimationTree.hpp"
#include "../config/supplementary/ConfigDescriptions.hpp"
#include "../managers/CursorManager.hpp"
-#include "../hyprerror/HyprError.hpp"
+#include "../errorOverlay/Overlay.hpp"
#include "../devices/IPointer.hpp"
#include "../devices/IKeyboard.hpp"
#include "../devices/ITouch.hpp"
@@ -1531,7 +1531,7 @@ static std::string dispatchSeterror(eHyprCtlOutputFormat format, std::string req
std::string errorMessage = "";
if (vars.size() < 3) {
- g_pHyprError->destroy();
+ ErrorOverlay::overlay()->destroy();
if (vars.size() == 2 && !vars[1].contains("dis"))
return "var 1 not color or disable";
@@ -1545,10 +1545,10 @@ static std::string dispatchSeterror(eHyprCtlOutputFormat format, std::string req
errorMessage += vars[i] + ' ';
if (errorMessage.empty()) {
- g_pHyprError->destroy();
+ ErrorOverlay::overlay()->destroy();
} else {
errorMessage.pop_back(); // pop last space
- g_pHyprError->queueCreate(errorMessage, COLOR);
+ ErrorOverlay::overlay()->queueCreate(errorMessage, COLOR);
}
return "ok";