From a360c31d0434898888e710f4a5f560200f50cecf Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 19 Apr 2026 18:47:49 +0100 Subject: errorOverlay: modernize, refactor, use GPU rendering (#14122) Improves the overlay's rendering: - GPU accelerated - supports gradients - wraps - cleaner code a bit --- src/debug/HyprCtl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/debug') 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"; -- cgit v1.2.3